SetJointDamping

Description

Damping can be used to make the joint soft, like a spring. The frequency is specified in hertz and should typically be less than half of the physics step rate. For example if the fps is 60 then the frequency should be less than 30. The damping ratio should be between 0 and 1, but can be larger.
This can only be used on distance joints, weld joints, line/wheel joints, and mouse joints. By default distance and weld joints have a damping ratio and frequency of 0 making the joint rigid. By default mouse joints have a frequency of 5 and a damping ratio of 0.7. By default line/wheel joints have a frequency of 2 and a damping ratio of 0.7.

Definition

SetJointDamping( iJointIndex, dampingRatio, frequency )

Parameters