Trait mgf::PhysicsObject [] [src]

pub trait PhysicsObject {
    fn integrate(&mut self, dt: f32);
fn state(&self) -> PhysicsState;
fn apply_impulse(&mut self, linear: Vector3<f32>, angular: Vector3<f32>);
fn update_dx(&mut self); }

An object that exhibits physical properties.

Required Methods

Integrate the object over the timestep

Return the physics state of the object

Apply linear and angular impulse to the object

Update the linear and angular positional derivatives

Implementors