$jointconstrain
Jump to navigation
Jump to search
Usage
$jointconstrain (Name) (Axis) (Type) (MinRange) (MaxRange) (Friction)
A QC command used to limit a joint's movement when compiling the collision model. For example, to limit joint_spine on the X axis with a range from 20 to 100 and a set friction of 0.20, add this line to the .QC file: $jointconstrain "joint_spine" x limit 20.00 100.00 0.20
.
Parameters
Name
- Name of the bone.
Axis
- X, Y, or Z.
Type
- Free
- The joint can move between a MinRange of -360 and a MaxRange of 360 with a selectable Friction. Note that user specified MinRange and MaxRange values are ignored.
- Fixed
- The joint does not move at all. The MinRange, MaxRange, and Friction values are locked at 0.
- Limit
- The joint is completely customizable. The user must specify MinRange, MaxRange, and Friction values.
MinRange
- If allowed, sets the minimum range allowed for this joint in degrees. (No lower than -360)
MaxRange
- If allowed, sets the maximum range allowed for this joint in degrees. (No higher than 360)
Friction
- If allowed, sets the Friction value.