Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted by ConfluenceCloudBulkEditor.py

Description

Aligns the local axis orientation.

The alignAxis commands provide maximum bone configuration flexibility when working with skeletons. Often it is desirable to be able to adjust bone axes individually in order to match the requirements of the environment into which the motion capture animations will be imported. Shogun  Shogun can support bones with any orientation of the local axis; however, this command will always put one of the specified axes "down the bone" for twist purposes.

...

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 remaining axis is aligned according the right hand rule.

Scroll pagebreak

...

void

Scroll pagebreak

Examples

...

languagetext
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

...