pub struct Contact {
pub body_a: usize,
pub body_b: usize,
pub normal: [f32; 3],
pub depth: f32,
pub point: [f32; 3],
pub cached_impulse: f32,
}Expand description
Contact point between two bodies.
Fields§
§body_a: usize§body_b: usize§normal: [f32; 3]§depth: f32§point: [f32; 3]§cached_impulse: f32Cached impulse from previous frame for warm-starting.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Contact
impl RefUnwindSafe for Contact
impl Send for Contact
impl Sync for Contact
impl Unpin for Contact
impl UnsafeUnpin for Contact
impl UnwindSafe for Contact
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