[][src]Struct nphysics2d::joint::JointMotor

pub struct JointMotor<V, N: Real> {
    pub desired_velocity: V,
    pub max_force: N,
    pub enabled: bool,
}

Description of a motor applied to a joint.

Fields

The velocity the motor will attempt to reach.

The maximum force deliverable by the motor.

Whether or not the motor is active.

Methods

impl<V: Zero, N: Real> JointMotor<V, N>
[src]

Create a disable motor with zero desired velocity.

The max force is initialized to a virtually infinite value, i.e., N::max_value().

The limits of the impulse applicable by the motor on the body parts.

Trait Implementations

impl<V: Copy, N: Copy + Real> Copy for JointMotor<V, N>
[src]

impl<V: Clone, N: Clone + Real> Clone for JointMotor<V, N>
[src]

Performs copy-assignment from source. Read more

impl<V: Zero, N: Real> Default for JointMotor<V, N>
[src]

impl<V: Debug, N: Debug + Real> Debug for JointMotor<V, N>
[src]

Auto Trait Implementations

impl<V, N> Send for JointMotor<V, N> where
    V: Send

impl<V, N> Sync for JointMotor<V, N> where
    V: Sync

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