phaser - v3.90.0
    Preparing search index...

    Function RotateVec3

    • Rotates a vector in place by axis angle.

      This is the same as transforming a point by an axis-angle quaternion, but it has higher precision.

      Parameters

      • vec: Math.Vector3

        The vector to be rotated.

      • axis: Math.Vector3

        The axis to rotate around.

      • radians: number

        The angle of rotation in radians.

      Returns Math.Vector3