pub struct Manifold {
pub points: [ManifoldPoint; 4],
pub normal: Vec3,
pub twist_impulse: f32,
pub friction_impulse: Vec3,
pub rolling_impulse: Vec3,
pub point_count: i32,
}Expand description
Contact manifold containing up to MAX_MANIFOLD_POINTS points.
Fields§
§points: [ManifoldPoint; 4]Fixed-size storage for native contact points.
normal: Vec3Contact normal.
twist_impulse: f32Twist friction impulse.
friction_impulse: Vec3Friction impulse vector.
rolling_impulse: Vec3Rolling friction impulse vector.
point_count: i32Number of valid entries in points.
Implementations§
Source§impl Manifold
impl Manifold
Sourcepub fn points(&self) -> &[ManifoldPoint]
pub fn points(&self) -> &[ManifoldPoint]
Returns only the valid manifold points.
Sourcepub fn from_raw(raw: b3Manifold) -> Self
pub fn from_raw(raw: b3Manifold) -> Self
Converts a raw Box3D manifold into the Rust value type.
Trait Implementations§
impl Copy for Manifold
impl StructuralPartialEq for Manifold
Auto Trait Implementations§
impl Freeze for Manifold
impl RefUnwindSafe for Manifold
impl Send for Manifold
impl Sync for Manifold
impl Unpin for Manifold
impl UnsafeUnpin for Manifold
impl UnwindSafe for Manifold
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