Call this function to change the coefficient of restitution for the dynamic object. The value controls how much an object will bounce. How much the object will bounce also depends on the coefficient of restitution of the object it is colliding with.
The average of the two restitution values is found and clamped to be between 0.0 and 1.0. A final coefficient of 0.0 will produce no bounce. A final coefficient of 1.0 will produce a perfect bounce with no energy loss.
It has no units. The default value is -1.0. The valid rage is from -1.0 to 1.0. If this value is close to 1.0, the object will take longer to settle down and come to rest. This may cause the simulation to run more slowly.. - See also:
- TA::DynamicObject::GetRestitution, TA::SurfaceAttribute::GetRestitution() and TA::SurfaceAttribute::SetRestitution().
- Parameters:
-
| fRestitution |
| | The new value for the coefficient of restitution of the dynamic object. |
|