Struct mgf::ContactConstraint
[−]
[src]
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]
Index: Copy,
Params: ContactConstraintParams,
pub fn new<T: ConstrainedSet<Index, Velocity, RigidBodyInfo>>(
pool: &T,
obj_a: Index,
obj_b: Index,
manifold: Manifold,
dt: f32
) -> Self
[src]
pool: &T,
obj_a: Index,
obj_b: Index,
manifold: Manifold,
dt: f32
) -> Self
Creates a new contact constraint.
Trait Implementations
impl<Index, Params> Constraint for ContactConstraint<Index, Params> where
Index: Copy,
Params: ContactConstraintParams,
[src]
Index: Copy,
Params: ContactConstraintParams,
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
fn solve<T: ConstrainedSet<Index, Velocity, RigidBodyInfo>>(
&mut self,
pool: &mut T
)
[src]
&mut self,
pool: &mut T
)
Solve the constraint.
Auto Trait Implementations
impl<Index, Params> Send for ContactConstraint<Index, Params> where
Index: Send,
Params: Send,
Index: Send,
Params: Send,
impl<Index, Params> Sync for ContactConstraint<Index, Params> where
Index: Sync,
Params: Sync,
Index: Sync,
Params: Sync,