pub struct Contact {
pub point: Point,
pub normal: Vector3,
pub overlap: f32,
}Expand description
The result of a collision
Fields§
§point: PointThe point at which the collision occurs
normal: Vector3The surface normal at the point of collision
overlap: f32The distance by which the colliding shapes overlap
Trait Implementations§
Source§impl NearlyEqual for &Contact
impl NearlyEqual for &Contact
fn nearly_equals(self, rhs: Self) -> bool
impl StructuralPartialEq for Contact
Auto Trait Implementations§
impl Freeze for Contact
impl RefUnwindSafe for Contact
impl Send for Contact
impl Sync for Contact
impl Unpin 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