pub struct ContactManifold {
pub body_a: BodyId,
pub body_b: BodyId,
pub depth: f32,
pub normal: Vec2,
pub point: Vec2,
}Expand description
Result of a collision test between two bodies.
Fields§
§body_a: BodyId§body_b: BodyId§depth: f32Penetration depth (positive = overlap).
normal: Vec2Normal pointing from A to B.
point: Vec2Contact point in world space.
Trait Implementations§
Source§impl Clone for ContactManifold
impl Clone for ContactManifold
Source§fn clone(&self) -> ContactManifold
fn clone(&self) -> ContactManifold
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContactManifold
impl RefUnwindSafe for ContactManifold
impl Send for ContactManifold
impl Sync for ContactManifold
impl Unpin for ContactManifold
impl UnsafeUnpin for ContactManifold
impl UnwindSafe for ContactManifold
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