Struct ContactManifold3D
#[repr(C)]pub struct ContactManifold3D {
pub body_a: u32,
pub body_b: u32,
pub normal: [f32; 3],
pub points: [ContactPoint3D; 4],
pub point_count: usize,
}Expand description
Persistent 4-point 3D contact manifold between body_a and body_b.
Fields§
§body_a: u32§body_b: u32§normal: [f32; 3]Shared outward contact normal pointing from body_a toward body_b.
points: [ContactPoint3D; 4]§point_count: usizeImplementations§
§impl ContactManifold3D
impl ContactManifold3D
pub const fn new(
body_a: u32,
body_b: u32,
normal: [f32; 3],
) -> ContactManifold3D
pub const fn new( body_a: u32, body_b: u32, normal: [f32; 3], ) -> ContactManifold3D
Creates an empty manifold for (body_a, body_b).
pub fn push_or_warm_start(
&mut self,
contact: &NarrowphaseContact,
local_a: [f32; 3],
local_b: [f32; 3],
feature_id: u32,
)
pub fn push_or_warm_start( &mut self, contact: &NarrowphaseContact, local_a: [f32; 3], local_b: [f32; 3], feature_id: u32, )
Updates or inserts a contact point from a NarrowphaseContact, preserving cached
warm-start impulses if a matching point lies within PERSISTENT_CONTACT_THRESHOLD_SQ.
Trait Implementations§
§impl Clone for ContactManifold3D
impl Clone for ContactManifold3D
§fn clone(&self) -> ContactManifold3D
fn clone(&self) -> ContactManifold3D
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 ContactManifold3D
§impl Debug for ContactManifold3D
impl Debug for ContactManifold3D
§impl Default for ContactManifold3D
impl Default for ContactManifold3D
§fn default() -> ContactManifold3D
fn default() -> ContactManifold3D
Returns the “default value” for a type. Read more
§impl PartialEq for ContactManifold3D
impl PartialEq for ContactManifold3D
impl StructuralPartialEq for ContactManifold3D
Auto Trait Implementations§
impl Freeze for ContactManifold3D
impl RefUnwindSafe for ContactManifold3D
impl Send for ContactManifold3D
impl Sync for ContactManifold3D
impl Unpin for ContactManifold3D
impl UnsafeUnpin for ContactManifold3D
impl UnwindSafe for ContactManifold3D
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