[][src]Struct mgf::ContactConstraint

pub struct ContactConstraint<Index, Params = DefaultContactConstraintParams> where
    Index: Copy,
    Params: ContactConstraintParams
{ /* fields omitted */ }

A non-penetration constraint between two rigid bodies.

Methods

impl<Index, Params> ContactConstraint<Index, Params> where
    Index: Copy,
    Params: ContactConstraintParams
[src]

pub fn new<T: ConstrainedSet<Index, Velocity, RigidBodyInfo>>(
    pool: &T,
    obj_a: Index,
    obj_b: Index,
    manifold: Manifold,
    dt: f32
) -> Self
[src]

Creates a new contact constraint.

Trait Implementations

impl<Index, Params> Constraint for ContactConstraint<Index, Params> where
    Index: Copy,
    Params: ContactConstraintParams
[src]

type Index = Index

A type used to index ConstrainedSets in order to retrieve information on the objects being constrained. Read more

type Constrained = Velocity

A type representing values that are constrained by (and thus modified by solving) the constraint. Read more

type Inspected = RigidBodyInfo

A type representing extra information required to solve the constraint that is not modified. Read more

Auto Trait Implementations

impl<Index, Params> RefUnwindSafe for ContactConstraint<Index, Params> where
    Index: RefUnwindSafe,
    Params: RefUnwindSafe

impl<Index, Params> Send for ContactConstraint<Index, Params> where
    Index: Send,
    Params: Send

impl<Index, Params> Sync for ContactConstraint<Index, Params> where
    Index: Sync,
    Params: Sync

impl<Index, Params> Unpin for ContactConstraint<Index, Params> where
    Index: Unpin,
    Params: Unpin

impl<Index, Params> UnwindSafe for ContactConstraint<Index, Params> where
    Index: UnwindSafe,
    Params: UnwindSafe

Blanket Implementations

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

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

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

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

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

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.