RigidBodyController::SetRollingResistance
Defined in:
Sets the rolling resistance for a rigid body.
C4Physics.hPrototype
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
