pub struct Contact<S: PhysicsSpace> {
pub normal: S::Vector,
pub point: S::Point,
pub penetration: f32,
pub restitution: f32,
}Fields§
§normal: S::VectorUnit, from body A toward body B, in A’s tangent space.
point: S::Point§penetration: f32Positive when the bodies overlap.
restitution: f32Trait Implementations§
Source§impl<S: PhysicsSpace> Clone for Contact<S>
impl<S: PhysicsSpace> Clone for Contact<S>
impl<S: PhysicsSpace> Copy for Contact<S>
Auto Trait Implementations§
impl<S> Freeze for Contact<S>
impl<S> RefUnwindSafe for Contact<S>
impl<S> Send for Contact<S>
impl<S> Sync for Contact<S>
impl<S> Unpin for Contact<S>
impl<S> UnsafeUnpin for Contact<S>
impl<S> UnwindSafe for Contact<S>
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