pub struct ManifoldPoint {
pub position: [f32; 3],
pub normal: [f32; 3],
pub depth: f32,
pub warm_impulse_normal: f32,
pub warm_impulse_t1: f32,
pub warm_impulse_t2: f32,
}Expand description
A single contact point in the manifold.
Fields§
§position: [f32; 3]Contact point in world space.
normal: [f32; 3]Contact normal (pointing from B to A).
depth: f32Penetration depth.
warm_impulse_normal: f32Accumulated impulse for warm starting (normal direction).
warm_impulse_t1: f32Accumulated impulse for warm starting (tangent 1).
warm_impulse_t2: f32Accumulated impulse for warm starting (tangent 2).
Implementations§
Source§impl ManifoldPoint
impl ManifoldPoint
Sourcepub fn from_contact(c: &ContactResult) -> Self
pub fn from_contact(c: &ContactResult) -> Self
Create a new manifold point from a contact result.
Trait Implementations§
Source§impl Clone for ManifoldPoint
impl Clone for ManifoldPoint
Source§fn clone(&self) -> ManifoldPoint
fn clone(&self) -> ManifoldPoint
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 moreAuto Trait Implementations§
impl Freeze for ManifoldPoint
impl RefUnwindSafe for ManifoldPoint
impl Send for ManifoldPoint
impl Sync for ManifoldPoint
impl Unpin for ManifoldPoint
impl UnsafeUnpin for ManifoldPoint
impl UnwindSafe for ManifoldPoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more