SetLimits
This functions sets the limits of a joint. The joint must have limits enabled using the EnableLimits command for this to have any effect.
Syntax
- SetLimits(number limit0, number limit1)
Parameters
- limit0: For hinge joints, this is the minimum angle. For slider joints, this is the minimum distance. For ball and socket joints, this is the maximum cone angle.
- limit1: For hinge joints, this is the maximum angle. For slider joints, this is the maximum distance. For ball and socket joints, this is the maximum twist angle.