Struct nphysics3d::joint::CartesianConstraint[][src]

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

A constraint that removes all relative angular motion between two body parts.


impl<N: Real> CartesianConstraint<N>

Creates a cartesian constaint between two body parts.

This will ensure the rotational parts of the frames given identified by joint_to_b1 and joint_to_b2 and attached to the corrisponding bodies will coincide.

Changes the reference frame for the first body part.

Changes the reference frame for the second body part.

Trait Implementations

impl<N: Real> JointConstraint<N> for CartesianConstraint<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 CartesianConstraint<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 CartesianConstraint<N>

impl<N> Sync for CartesianConstraint<N>