$attachment: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (minor cleanup)
m (added example with clearer syntax)
Line 8: Line 8:


  $attachment (name) (bone name) (X) (Y) (Z) ["absolute"] ["rigid"] ["rotate" pitch yaw roll]
  $attachment (name) (bone name) (X) (Y) (Z) ["absolute"] ["rigid"] ["rotate" pitch yaw roll]
== Example ==
$attachment "anim_attachment_RH" "ValveBiped.Anim_Attachment_RH" -0.00 -0.00 0.00 rotate -90.00 -90.00 0.00


[[Category:QC Commands|attachment]]__NOTOC__
[[Category:QC Commands|attachment]]__NOTOC__

Revision as of 19:00, 5 May 2008

Attachment points are now named based instead of fixed indexed based. They also can be defined in absolute coordinates instead of being bone relative. If defined as "rigid", the bone they're attached won't be assumed to animate and may be optimized out, in which case they'll reattach themselves to the first available parent bone.

The "rotate" option will change the orientation of the attachment point, in place, relative its parent joint.

Syntax

$attachment (name) (bone name) (X) (Y) (Z) ["absolute"] ["rigid"] ["rotate" pitch yaw roll]

Example

$attachment "anim_attachment_RH" "ValveBiped.Anim_Attachment_RH" -0.00 -0.00 0.00 rotate -90.00 -90.00 0.00