Struct nphysics3d::joint::JointMotor [−][src]
Description of a motor applied to a joint.
Fields
desired_velocity: V
The velocity the motor will attempt to reach.
max_force: N
The maximum force deliverable by the motor.
enabled: bool
Whether or not the motor is active.
Methods
impl<V: Zero, N: Real> JointMotor<V, N>
[src]
impl<V: Zero, N: Real> JointMotor<V, N>
pub fn new() -> Self
[src]
pub fn new() -> Self
Create a disable motor with zero desired velocity.
The max force is initialized to a virtually infinite value, i.e., N::max_value()
.
pub fn impulse_limits(&self) -> ImpulseLimits<N>
[src]
pub fn impulse_limits(&self) -> ImpulseLimits<N>
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: Copy, N: Copy + Real> Copy for JointMotor<V, N>
impl<V: Clone, N: Clone + Real> Clone for JointMotor<V, N>
[src]
impl<V: Clone, N: Clone + Real> Clone for JointMotor<V, N>
fn clone(&self) -> JointMotor<V, N>
[src]
fn clone(&self) -> JointMotor<V, N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<V: Debug, N: Debug + Real> Debug for JointMotor<V, N>
[src]
impl<V: Debug, N: Debug + Real> Debug for JointMotor<V, N>
Auto Trait Implementations
impl<V, N> Send for JointMotor<V, N> where
V: Send,
impl<V, N> Send for JointMotor<V, N> where
V: Send,
impl<V, N> Sync for JointMotor<V, N> where
V: Sync,
impl<V, N> Sync for JointMotor<V, N> where
V: Sync,