@cccode/fxr - v22.0.0

    Function animatedNodeRotation

    • Creates a NodeSpin action from an animated rotation property.

      Normally, to animate the rotation of a node, you would need to use NodeSpin to animate the angular speed. Controlling the angular speed instead of the rotation directly can be tricky if you want the node to point in specific directions at specific times. This function automatically converts an animated rotation property to an angular speed property to make this easier.

      Notes:

      • High angular velocities are not very well supported. Avoid using this function if you need the rotation to change quickly. Stepped rotation properties are not supported at all.
      • The rotation property must start at [0, 0, 0]. To control the initial rotation, wrap the node in one with that rotation instead.
      • This only creates an approximation, it is not perfect. If this is used with a looping property, the rotation will eventually stray from where it should be. This is likely due to how the angular speed is applied, which is also why high speeds break this.

      Parameters

      Returns Action | NodeSpin

    MMNEPVFCICPMFPCPTTAAATR