$attachment: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (minor cleanup)
Line 1: Line 1:
<code>$attachment (name) (bone name) (X) (Y) (Z) ["absolute"] ["rigid"] ["rotate" pitch yaw roll]</code>
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 <code>"rigid"</code>, 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.


* 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 <code>"rotate"</code> option will change the orientation of the attachment point, in place, relative its parent joint.


* The "rotate" option will change the orientation of the attachment point, in place, relative its parent joint.  
* See [[Attachments]].


* See [[Attachments]].
== Syntax ==
 
$attachment (name) (bone name) (X) (Y) (Z) ["absolute"] ["rigid"] ["rotate" pitch yaw roll]


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

Revision as of 13:48, 28 April 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]