[−][src]Struct collision::Contact
Fields
strategy: CollisionStrategy
The collision strategy used for this contact.
normal: P::Diff
The collision normal. Only applicable if the collision strategy is not CollisionOnly
penetration_depth: P::Scalar
The penetration depth. Only applicable if the collision strategy is not CollisionOnly
contact_point: P
The contact point. Only applicable if the collision strategy is not CollisionOnly
time_of_impact: P::Scalar
The time of impact, only applicable for continuous collision detection, value is in range 0.0..1.0
Methods
impl<P> Contact<P> where
P: EuclideanSpace,
P::Diff: VectorSpace + Zero,
[src]
impl<P> Contact<P> where
P: EuclideanSpace,
P::Diff: VectorSpace + Zero,
pub fn new(strategy: CollisionStrategy) -> Self | [src] |
Create a new contact manifold, with default collision normal and penetration depth
pub fn new_impl( | [src] |
Create a new contact manifold, with the given collision normal and penetration depth
pub fn new_with_point( | [src] |
Create a new contact manifold, complete with contact point
Trait Implementations
impl<P: Clone + EuclideanSpace> Clone for Contact<P> where
P::Diff: Clone,
P::Scalar: Clone,
P::Scalar: Clone,
[src]
impl<P: Clone + EuclideanSpace> Clone for Contact<P> where
P::Diff: Clone,
P::Scalar: Clone,
P::Scalar: Clone,
fn clone(&self) -> Contact<P> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<P: Debug + EuclideanSpace> Debug for Contact<P> where
P::Diff: Debug,
P::Scalar: Debug,
P::Scalar: Debug,
[src]
impl<P: Debug + EuclideanSpace> Debug for Contact<P> where
P::Diff: Debug,
P::Scalar: Debug,
P::Scalar: Debug,
Auto Trait Implementations
impl<P> Send for Contact<P> where
P: Send,
<P as EuclideanSpace>::Diff: Send,
<P as EuclideanSpace>::Scalar: Send,
impl<P> Send for Contact<P> where
P: Send,
<P as EuclideanSpace>::Diff: Send,
<P as EuclideanSpace>::Scalar: Send,
impl<P> Sync for Contact<P> where
P: Sync,
<P as EuclideanSpace>::Diff: Sync,
<P as EuclideanSpace>::Scalar: Sync,
impl<P> Sync for Contact<P> where
P: Sync,
<P as EuclideanSpace>::Diff: Sync,
<P as EuclideanSpace>::Scalar: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |