$jointconstrain: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 30: Line 30:


=== Friction ===
=== Friction ===
: Sets the Friction value.
: If allowed, sets the Friction value.


[[Category:QC Commands]]
[[Category:QC Commands]]
[[Category:Modeling]]
[[Category:Modeling]]

Revision as of 14:07, 9 August 2006

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: $jointconstrain "joint_spine" x limit 20.00 100.00 0.20.

Parameters

Name

Name of the joint.

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.