HingeJoint:setMotorSpring
EditSets the spring parameters of the motor target. These are similar to the spring parameters set by HingeJoint:setSpring
, but they apply to the motor when it reaches its target instead of the angle limits of the hinge joint. Note that these only take effect when the motor mode is position
.
HingeJoint:setMotorSpring(frequency, damping)
Arguments
Name | Type | Default | Description |
frequency | number | 0.0 | The frequency of the spring, in hertz. Higher frequencies make the spring more stiff. When zero, the spring is disabled. |
damping | number | 1.0 | The damping ratio of the spring. |
Returns
Nothing
Notes
See HingeJoint:setSpring
for more detailed info on how the spring parameters work.