BodyController::SetFluidDragMultiplier
Defined in:
Sets the fluid drag multiplier for a body.
C4Body.h
Prototype
void SetFluidDragMultiplier(float multiplier);
Parameters
multiplier |
The new fluid drag multiplier. |
Description
The SetFluidDragMultiplier
function sets the fluid drag multiplier for a body to the value specified by the multiplier
parameter. The fluid drag multiplier scales the drag force exerted on a body by the FluidForce
class in particular, and any custom force fields involving fluids. A value of 1.0 means that the ordinary drag force is applied, while values higher or lower than 1.0 mean that proportionately more or less drag is applied. If the drag multiplier is 0.0, then no drag is applied to the body at all.The initial value of the fluid drag multiplier is 1.0.
See Also
BodyController::GetFluidDragMultiplier
BodyController::GetWindDragMultiplier