AutoMovie API
    Preparing search index...

    Function turnHumanPosture

    • A posture's root and world limb goals after its whole-body rotation (#3423): the root's position goes round the rotation's point and its rotation becomes the turn times the heading, and each world limb goal's point and bend go round the same point and its rotation is composed after the turn. A goal attached to a bone (on) is kept, since its bone moves with the turned body already. A planted goal refuses the turn unless the rotation keeps it (planted: true): then it stays in the world and its limb is re-solved onto it. Without a rotation the root is the posture's own and the goals are returned unchanged.

      The root's rotation is composed as a quaternion and never read back into Euler angles, so a turn through the vertical keeps every digit, which the heading's angles lose near a pitch of 90 degrees (resolveHumanPosture.angles).

      Parameters

      Returns ITurned

      Its root's world position and rotation and its limb goals, turned.

      When the posture has a rotation and a planted world goal, naming the limb: a rigid turn of the body cannot keep a plant.