palImpulseActuator Class Reference

#include <palActuators.h>

Inheritance diagram for palImpulseActuator:

palActuator palHydrofoil palPropeller

List of all members.

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 ()


Detailed Description

A "impulse" actuator. Applys a impulse to a given body at a given position in a given direction. In classical physics, momentum is related to velocity by $p=m.v$ where p is the Momentum, m is the Mass, and v is the Velocity. An impulse is simply a change in momentum.

Member Function Documentation

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

Parameters:
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.


The documentation for this class was generated from the following files:

Generated on Mon Aug 31 13:58:02 2009 for pal by  doxygen 1.5.7.1