Struct nphysics3d::joint::CylindricalConstraint[][src]

pub struct CylindricalConstraint<N: Real> { /* fields omitted */ }

A constraint that removes all degrees of freedom (of one body part relative to a second one) except one translation along an axis and one rotation along the same axis.


impl<N: Real> CylindricalConstraint<N>

Creates a cartesian constaint between two body parts.

This will ensure axis1 and axis2 always coincide. All the axis and anchors are provided on the local space of the corresponding body parts.

Trait Implementations

impl<N: Real> JointConstraint<N> for CylindricalConstraint<N>

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.

Return true if the constraint is active. Read more

impl<N: Real> NonlinearConstraintGenerator<N> for CylindricalConstraint<N>

Maximum of non-linear position constraint this generater needs to output.

Generate the i-th position constraint of this generator.

Auto Trait Implementations

impl<N> Send for CylindricalConstraint<N> where
    N: Scalar

impl<N> Sync for CylindricalConstraint<N> where
    N: Scalar