API

Function createQuatFromLookDirectionRH

  • Build a unit quaternion that orients local +Z onto forward and local +Y onto up, using a right-handed basis (right = up × forward). Matches Babylon.js Quaternion.FromLookDirectionRH.

    Parameters

    • forward: Vec3

      Desired forward direction (should be normalized).

    • up: Vec3

      Desired up direction (should be normalized and not parallel to forward).

    Returns Quat

    A new { x, y, z, w } quaternion.