Enum parry2d::query::details::NonlinearTOIMode[][src]

pub enum NonlinearTOIMode {
    StopAtPenetration,
    DirectionalTOI {
        sum_linear_thickness: Real,
        max_angular_thickness: Real,
    },
}

Enum specifying the behavior of TOI computation when there is a penetration at the starting time.

Variants

StopAtPenetration

Stop TOI computation as soon as there is a penetration.

DirectionalTOI

When there is a penetration, don’t stop the TOI search if the relative velocity at the penetration points is negative (i.e. if the points are separating).

Fields of DirectionalTOI

sum_linear_thickness: Real

The sum of the Shape::ccd_thickness of both shapes involved in the TOI computation.

max_angular_thickness: Real

The max of the Shape::ccd_angular_thickness of both shapes involved in the TOI computation.

Implementations

impl NonlinearTOIMode[src]

pub fn directional_toi<S1: ?Sized, S2: ?Sized>(shape1: &S1, shape2: &S2) -> Self where
    S1: Shape,
    S2: Shape
[src]

Initializes a directional TOI mode.

With the “directional” TOI mode, the nonlinear TOI computation won’t immediately stop if the shapes are already intersecting at t = 0. Instead, it will search for the first time where a contact between the shapes would result in a deeper penetration (with risk of tunnelling). This effectively checks the relative velocity of the shapes at their point of impact.

Trait Implementations

impl Clone for NonlinearTOIMode[src]

impl Copy for NonlinearTOIMode[src]

impl Debug for NonlinearTOIMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> OverflowingAs for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatingAs for T[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]