#include <palActuators.h>

Public Member Functions | |
| virtual void | Init (palBody *pbody, Float px, Float py, Float pz, Float axis_x, Float axis_y, Float axis_z) |
| virtual void | SetImpulse (Float impulse) |
| virtual void | Apply () |
where p is the Momentum, m is the Mass, and v is the Velocity. An impulse is simply a change in momentum. | void palImpulseActuator::Apply | ( | ) | [virtual] |
Ensures the actuator operates for the current time step
Implements palActuator.
Reimplemented in palPropeller, and palHydrofoil.
| void palImpulseActuator::Init | ( | palBody * | pbody, | |
| Float | px, | |||
| Float | py, | |||
| Float | pz, | |||
| Float | axis_x, | |||
| Float | axis_y, | |||
| Float | axis_z | |||
| ) | [virtual] |
Initializes the actuator
| pbody | The body to connect the actuator to | |
| px | The x position of the actuator's center | |
| py | The y position of the actuator's center | |
| pz | The z position of the actuator's center | |
| axis_x | The axis vector which supplies the direction of the actuator's impulse. (x) | |
| axis_y | The axis vector which supplies the direction of the actuator's impulse. (y) | |
| axis_z | The axis vector which supplies the direction of the actuator's impulse. (z) |
| virtual void palImpulseActuator::SetImpulse | ( | Float | impulse | ) | [inline, virtual] |
Sets the impulse.
1.5.7.1