$realignbones

From Valve Developer Community
Revision as of 15:59, 28 April 2008 by JeffLane (talk | contribs) (minor cleanup)
Jump to navigation Jump to search

This forces all the bones to reorient themselves – if possible - so that their longest axis is along their X axis. This helps with building both hit boxes, quite often child bones are at some diagonal to their parent and the axis-align-bounding-box that gets connected to their parent bone is often badly shaped for models that are mostly made of long tubes, as well as making IK possible since the IK system requires that the child bones are always along the X axis of their parent.

Bones with multiple children, such as the pelvis, are not realigned and cannot be used as part of an IK system (i.e. the hip bone can't change position in relation to the pelvis).

Syntax

$realignbones