Struct nphysics2d::joint::PrismaticConstraint[][src]

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

A constraint that remove all be one translational degrees of freedom.

Methods

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

Create a new prismatic constraint that ensures the relative motion between the two body parts are restricted to a single translation along the axis1 axis (expressed in the local coordinates frame of b1).

The lower limit, if any, of the relative translation (along the joint axis) of the body parts attached to this joint.

The upper limit, if any, of the relative translation (along the joint axis) of the body parts attached to this joint.

Disable the lower limit of the relative translational motion along the joint axis.

Disable the upper limit of the relative translational motion along the joint axis.

Enables the lower limit of the relative translational motion along the joint axis.

Disable the lower limit of the relative translational motion along the joint axis.

Trait Implementations

impl<N: Real> JointConstraint<N> for PrismaticConstraint<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 PrismaticConstraint<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 PrismaticConstraint<N> where
    N: Scalar

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