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.
forward
up
right = up × forward
Quaternion.FromLookDirectionRH
Desired forward direction (should be normalized).
Desired up direction (should be normalized and not parallel to forward).
A new { x, y, z, w } quaternion.
{ x, y, z, w }
Build a unit quaternion that orients local +Z onto
forwardand local +Y ontoup, using a right-handed basis (right = up × forward). Matches Babylon.jsQuaternion.FromLookDirectionRH.