Description
...
alignAxis "x/-x/y/-y/z/-z" "x/-x/y/-y/z/-z" "x/-x/y/-y/z/-z" [-toSystem string string string] [-toNode string] [-toLine string string] |
Arguments
A string composed of three letters, separated by spaces. Each component of the argument may be either X, Y, or Z.
The rotation axis indicated by the first letter in the argument, x axis if the argument is "x z z", for example, will be aligned with the vector from this joint to its first child joint.
The rotation axis indicated by the second letter in the argument, z axis if the argument is "x z z", will be aligned with the world axis indicated in the third letter of the argument (z).
The The remaining axis is aligned according the right hand rule.
Scroll pagebreak |
---|
...
void
Scroll pagebreak |
---|
Examples
...
...
alignAxis y z z;
...
// Align a BoneNode's local axis as follows:
...
// Y axis aligned with the vector from the indicated
...
// node to its first child (i.e. down the bone).
...
// Z axis aligned (as closely as is possible)
...
// with the world Z axis.
Additional information
Related commands
...