C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

RigidBodyController::SetDragMultiplier

Defined in:  C4Physics.h
Sets the drag multiplier for a rigid body.
Prototype

void SetDragMultiplier(float multiplier);

Parameters
multiplier The new drag multiplier.
Description
The SetDragMultiplier function sets the drag multiplier for a rigid body to the value specified by the multiplier parameter. The drag multiplier scales the drag force exerted on a rigid body by various force fields such as the FluidForce and WindForce classes. 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 rigid body at all.

The initial value of the drag multiplier is 1.0.
See Also

RigidBodyController::GetDragMultiplier

FluidForce

WindForce