Struct nphysics3d::joint::JointMotor[][src]

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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