$attachment

From Valve Developer Community
Revision as of 12:08, 6 May 2008 by Beeswax (talk | contribs) (cleanup - please check diff to ensure accuracy)
Jump to navigation Jump to search

Attachment points are now name-based instead of fixed-index-based.

  • Each attachment point's position and orientation can be defined relative to the model's origin ("absolute") or a named bone. The "rotate" option will change the orientation of the attachment point relative its parent joint.
  • If "rigid" is set, StudioMDL assumes the attached-to bone does not animate and may optimize it out, in which case this bone's attachments will reattach themselves to the first available parent bone.

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