Trait nphysics2d::integration::integrator::Integrator
[−]
[src]
pub trait Integrator<N: Real, O> { fn update(&mut self, dt: N, o: &mut O); }
Trait implemented by every integrator.
An integrator is a structure capable of updating a dynamic body position and orientation after a given time-step.
Required Methods
fn update(&mut self, dt: N, o: &mut O)
Updates the position and orientation of the object o
after a time step of dt
.
Implementors
impl<N: Real> Integrator<N, RigidBody<N>> for BodyExpEulerIntegrator
impl<N: Real> Integrator<N, RigidBody<N>> for BodySmpEulerIntegrator
impl<N: Real> Integrator<N, RigidBody<N>> for BodyForceGenerator<N>
impl<N: Real> Integrator<N, RigidBody<N>> for BodyDamping<N>