[][src]Struct nphysics2d::joint::PrismaticJoint

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

A unit joint that allows only one translational degree on freedom.

Methods

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

Create a new prismatic joint where the allowed traslation is defined along the provided axis.

The axis is expressed in the local coordinate system of the two multibody links attached to this joint.

The relative displacement of the attached multibody links along the joint axis.

The relative translation of the attached multibody links along the joint axis.

The lower limit of the relative displacement of the attached multibody links along the joint axis.

The upper limit of the relative displacement of the attached multibody links along the joint axis.

Disable the lower limit of the relative displacement of the attached multibody links along the joint axis.

Disable the upper limit of the relative displacement of the attached multibody links along the joint axis.

Set the lower limit of the relative displacement of the attached multibody links along the joint axis.

Set the upper limit of the relative displacement of the attached multibody links along the joint axis.

Returns true if the joint motor is enabled.

Enable the joint motor.

Disable the joint motor.

The desired relative velocity to be enforced by the joint motor.

Set the desired relative velocity to be enforced by the joint motor.

The maximum force that can be output by the joint motor.

Set the maximum force that can be output by the joint motor.

Trait Implementations

impl<N: Real> Joint<N> for PrismaticJoint<N>
[src]

The maximum number of impulses needed by this joints for its constraints. Read more

impl<N: Real> UnitJoint<N> for PrismaticJoint<N>
[src]

impl<N: Copy + Real> Copy for PrismaticJoint<N>
[src]

impl<N: Clone + Real> Clone for PrismaticJoint<N>
[src]

Performs copy-assignment from source. Read more

impl<N: Debug + Real> Debug for PrismaticJoint<N>
[src]

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Same for T

Should always be Self