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]
fn new(lin_acc: Vector<N>, ang_acc: Orientation<N>) -> 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]
fn lin_acc(&self) -> Vector<N>
[src]
The linear acceleration applied by this force generator.
fn set_lin_acc(&mut self, lin_acc: Vector<N>)
[src]
Sets the linear acceleration applied by this force generator.
fn ang_acc(&self) -> Orientation<N>
[src]
The angular acceleration applied by this force generator.
fn set_ang_acc(&mut self, ang_acc: Orientation<N>)
[src]
Sets the angular acceleration applied by this force generator.