[][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> Send for ContactConstraint<Index, Params> where
    Index: Send,
    Params: Send

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

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.