#[repr(C)]pub struct b3Manifold {
pub points: [b3ManifoldPoint; 4],
pub normal: b3Vec3,
pub twistImpulse: f32,
pub frictionImpulse: b3Vec3,
pub rollingImpulse: b3Vec3,
pub pointCount: c_int,
}Expand description
A contact manifold describes the contact points between colliding shapes. @note Box3D uses speculative collision so some contact points may be separated.
Fields§
§points: [b3ManifoldPoint; 4]The manifold points. There may be 1 to 4 valid points.
normal: b3Vec3The unit normal vector in world space, points from shape A to shape B
twistImpulse: f32Central friction angular impulse (applied about the normal)
frictionImpulse: b3Vec3Central friction linear impulse
rollingImpulse: b3Vec3Rolling resistance angular impulse
pointCount: c_intThe number of contact points, will be 0 to 4
Trait Implementations§
Source§impl Clone for b3Manifold
impl Clone for b3Manifold
Source§fn clone(&self) -> b3Manifold
fn clone(&self) -> b3Manifold
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for b3Manifold
Auto Trait Implementations§
impl Freeze for b3Manifold
impl RefUnwindSafe for b3Manifold
impl Send for b3Manifold
impl Sync for b3Manifold
impl Unpin for b3Manifold
impl UnsafeUnpin for b3Manifold
impl UnwindSafe for b3Manifold
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more