#include <palActuators.h>
Public Member Functions | |
void | Init (palBody *pbody, Float area, Float CD, Float density=0.99829f) |
void | Apply () |
Where, is the drag coefficient is the fluid density. is the frontal area. L is the lift force. V is the realtive velocity.
void palLiquidDrag::Apply | ( | ) | [virtual] |
Ensures the actuator operates for the current time step
Implements palActuator.
void palLiquidDrag::Init | ( | palBody * | pbody, | |
Float | area, | |||
Float | CD, | |||
Float | density = 0.99829f | |||
) |
Initializes the liquid drag
pbody | The body to which the drag is applied. | |
area | The frontal area of the body to which the drag is applied | |
CD | The drag coefficient | |
density | The fluid density |