Struct nphysics2d::integration::BodyForceGenerator [] [src]

pub struct BodyForceGenerator<N: Real> { /* fields omitted */ }

A constant linear and angular force generator.

Methods

impl<N: Real> BodyForceGenerator<N>
[src]

Creates a new BodyForceGenerator.

Arguments:

  • lin_acc - the linear acceleration to apply to every body on the scene.
  • ang_acc - the angular acceleration to apply to every body on the scene.

impl<N: Real> BodyForceGenerator<N>
[src]

The linear acceleration applied by this force generator.

Sets the linear acceleration applied by this force generator.

The angular acceleration applied by this force generator.

Sets the angular acceleration applied by this force generator.

Trait Implementations

impl<N: Real> Integrator<N, RigidBody<N>> for BodyForceGenerator<N>
[src]

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