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

Updates the position and orientation of the object o after a time step of dt.

Implementors