#[repr(C)]pub struct b2Manifold {
pub normal: b2Vec2,
pub rollingImpulse: f32,
pub points: [b2ManifoldPoint; 2],
pub pointCount: c_int,
}Expand description
A contact manifold describes the contact points between colliding shapes. @note Box2D uses speculative collision so some contact points may be separated.
Fields§
§normal: b2Vec2The unit normal vector in world space, points from shape A to bodyB
rollingImpulse: f32Angular impulse applied for rolling resistance. N * m * s = kg * m^2 / s
points: [b2ManifoldPoint; 2]The manifold points, up to two are possible in 2D
pointCount: c_intThe number of contacts points, will be 0, 1, or 2
Trait Implementations§
Source§impl Clone for b2Manifold
impl Clone for b2Manifold
Source§fn clone(&self) -> b2Manifold
fn clone(&self) -> b2Manifold
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2Manifold
impl Debug for b2Manifold
impl Copy for b2Manifold
Auto Trait Implementations§
impl Freeze for b2Manifold
impl RefUnwindSafe for b2Manifold
impl Send for b2Manifold
impl Sync for b2Manifold
impl Unpin for b2Manifold
impl UnwindSafe for b2Manifold
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)