[][src]Struct nphysics3d::force_generator::ConstantAcceleration

pub struct ConstantAcceleration<N: RealField> { /* fields omitted */ }

Force generator adding a constant acceleration at the center of mass of a set of body parts.

Methods

impl<N: RealField> ConstantAcceleration<N>[src]

pub fn new(linear_acc: Vector<N>, angular_acc: Vector<N>) -> Self[src]

Adds a new constant acceleration generator.

The acceleration is expressed in world-space.

pub fn add_body_part(&mut self, body: BodyPartHandle)[src]

Add a body part to be affected by this force generator.

Trait Implementations

impl<N: RealField> ForceGenerator<N> for ConstantAcceleration<N>[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

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> BorrowMut for T where
    T: ?Sized
[src]

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Downcast for T where
    T: Any
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self