Struct nphysics3d::joint::BallConstraint[][src]

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

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


impl<N: Real> BallConstraint<N>

Creates a ball constaint between two body parts.

This will ensure the two points identified by anchor1 and anchor2 will coincide. Both are given in the local-space of their corresponding body part.

Change the first anchor, expressed in the local space of the first body part.

Change the second anchor, expressed in the local space of the second body part.

Trait Implementations

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

impl<N> Sync for BallConstraint<N>