RigidBodyController::SetRestitutionCoefficient
Defined in:
Sets the restitution coefficient for a rigid body.
C4Physics.h
Prototype
void SetRestitutionCoefficient(float restitution);
Parameters
restitution |
The new restitution coefficient. |
Description
The SetRestitutionCoefficient
function sets the restitution coefficient for a rigid body to the value specified by the restitution
parameter. This value determines how much a rigid body bounces when it collides with another rigid body or static geometry, and it should be in the range [0.0, 1.0]. A value of 0.0 means that all of the rigid body's energy is lost in a collision, and a value of 1.0 means that collisions produce a completely elastic response.The initial value of the restitution coefficient is 0.0.
See Also