RigidBodyController::SetFrictionCoefficient
Defined in:
Sets the friction coefficient for a rigid body.
C4Physics.h
Prototype
void SetFrictionCoefficient(float friction);
Parameters
friction |
The new friction coefficient. |
Description
The SetFrictionCoefficient
function sets the friction coefficient for a rigid body to the value specified by the friction
parameter. This value determines how much frictional force is exerted on a rigid body when it is in contact with another rigid body or static geometry. Typical values for the friction
parameter are in the range [0.0, 0.5].The initial value of the friction coefficient is 0.25.
See Also
RigidBodyController::GetFrictionCoefficient
RigidBodyController::GetSpinFrictionMultiplier
RigidBodyController::SetSpinFrictionMultiplier