Trait nphysics3d::force_generator::ForceGenerator[][src]

pub trait ForceGenerator<N: Real>: Any + Send + Sync {
    fn apply(
        &mut self,
        params: &IntegrationParameters<N>,
        bodies: &mut BodySet<N>
    ) -> bool; }

A persistent force generator.

A force generator applies a force to one or several bodies at each step of the simulation.

Required Methods

Apply forces to some bodies.

Methods

impl<N> ForceGenerator<N> where
    N: Real

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for Box<R>

Trait Implementations

impl<_T: Any, N> Downcast<_T> for ForceGenerator<N> where
    _T: Any,
    N: 'static,
    N: Real

Important traits for &'a mut R

Important traits for &'a mut R

Important traits for Box<R>

Implementors