Trait nphysics3d::joint::JointConstraint[][src]

pub trait JointConstraint<N: Real>: NonlinearConstraintGenerator<N> + Any + Send + Sync {
    fn num_velocity_constraints(&self) -> usize;
fn anchors(&self) -> (BodyHandle, BodyHandle);
fn velocity_constraints(
        &mut self,
        params: &IntegrationParameters<N>,
        bodies: &BodySet<N>,
        ext_vels: &DVector<N>,
        ground_j_id: &mut usize,
        j_id: &mut usize,
        jacobians: &mut [N],
        velocity_constraints: &mut ConstraintSet<N>
    );
fn cache_impulses(&mut self, constraints: &ConstraintSet<N>); fn is_active(&self, bodies: &BodySet<N>) -> bool { ... } }

Trait implemented by joint that operate by generating constraints to restrict the relative motion of two body parts.

Required Methods

The maximum number of velocity constraints generated by this joint.

The two body parts affected by this joint.

Initialize and retrieve all the constraints appied to the bodies attached to this joint.

Called after velocity constraint resolution, allows the joint to keep a cache of impulses generated for each constraint.

Provided Methods

Return true if the constraint is active.

Typically, a constraint is disable if it is between two sleeping bodies, or, between bodies without any degrees of freedom.

Methods

impl<N> JointConstraint<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 JointConstraint<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