Trait nphysics2d::solver::ContactModel[][src]

pub trait ContactModel<N: Real>: Any + Send + Sync {
    fn num_velocity_constraints(
        &self,
        manifold: &ColliderContactManifold<N>
    ) -> usize;
fn constraints(
        &mut self,
        params: &IntegrationParameters<N>,
        bodies: &BodySet<N>,
        ext_vels: &DVector<N>,
        manifolds: &[ColliderContactManifold<N>],
        ground_j_id: &mut usize,
        j_id: &mut usize,
        jacobians: &mut [N],
        constraints: &mut ConstraintSet<N>
    );
fn cache_impulses(&mut self, constraints: &ConstraintSet<N>); }

The modeling of a contact.

Required Methods

Maximum number of velocity constraint to be generated for each contact.

Generate all constraints for the given contact manifolds.

Stores all the impulses found by the solver into a cache for warmstarting.

Methods

impl<N> ContactModel<N> where
    N: Real

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for Box<R>

Trait Implementations

impl<_T: Any, N> Downcast<_T> for ContactModel<N> where
    _T: Any,
    N: 'static,
    N: Real

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for Box<R>

Implementors