[−][src]Struct mgf::ContactConstraint
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
)
Auto Trait Implementations
impl<Index, Params> RefUnwindSafe for ContactConstraint<Index, Params> where
Index: RefUnwindSafe,
Params: RefUnwindSafe,
Index: RefUnwindSafe,
Params: RefUnwindSafe,
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,
impl<Index, Params> Unpin for ContactConstraint<Index, Params> where
Index: Unpin,
Params: Unpin,
Index: Unpin,
Params: Unpin,
impl<Index, Params> UnwindSafe for ContactConstraint<Index, Params> where
Index: UnwindSafe,
Params: UnwindSafe,
Index: UnwindSafe,
Params: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,