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]

[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]

[src]

The linear acceleration applied by this force generator.

[src]

Sets the linear acceleration applied by this force generator.

[src]

The angular acceleration applied by this force generator.

[src]

Sets the angular acceleration applied by this force generator.

Trait Implementations

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

[src]

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