Struct nphysics3d::joint::RectangularConstraint[][src]

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

A constraint that remove all relative rotations and one relative translation between two body parts.

Methods

impl<N: Real> RectangularConstraint<N>
[src]

Create a new rectangular constraint that restrict b1 and b2 to move on a plane orthogonal to axis1.

The axis1 is expressed in the local coordinate system of b1. Both anchors are expressed in the local coordinate system of their respective bodies.

Trait Implementations

impl<N: Real> JointConstraint<N> for RectangularConstraint<N>
[src]

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 RectangularConstraint<N>
[src]

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 RectangularConstraint<N> where
    N: Scalar

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