RigidBodyController::SetFrictionCoefficient
Defined in: C4Physics.h
Sets the friction coefficient for a rigid body.
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.
The initial value of the friction coefficient is 0.01.
See Also
RigidBodyController::GetFrictionCoefficient
|