$realignbones

From Valve Developer Community
Jump to: navigation, 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 hitboxes, 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