C4 Engine
C4 Engine API Documentation

RigidBodyController::SetRollingResistance

Defined in:  C4Physics.h
Sets the rolling resistance for a rigid body.
Prototype

void SetSpinFrictionMultiplier(float resistance);

Parameters
resistance The new rolling resistance.
Description
The SetRollingResistance function sets the rolling resistance for a rigid body to the value specified by the resistance parameter. When nonzero, the rolling resistance generates a torque that opposes the rolling motion of a rigid body. Typical values for the resistance parameter are in the range [0.0, 0.05].

The initial value of the rolling resistance is 0.0.
See Also

RigidBodyController::GetRollingResistance

RigidBodyController::GetFrictionCoefficient

RigidBodyController::SetFrictionCoefficient

RigidBodyController::GetSpinFrictionMultiplier

RigidBodyController::SetSpinFrictionMultiplier