You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If u set the mat4 with a quaternion rotation, scale the mat4 and then call getRotation, u won't get the initial rotation, and normalize that result won't get it either.
U need to scale it back to 1 and call getRotation if u want the rotation u put in.
This also means quat2.fromMat4 does not work if the matrix4 has a scale. This at least in the environment I work with, where the scale is not saved into the quat2 transform.
The text was updated successfully, but these errors were encountered:
If u set the mat4 with a quaternion rotation, scale the mat4 and then call getRotation, u won't get the initial rotation, and normalize that result won't get it either.
U need to scale it back to 1 and call getRotation if u want the rotation u put in.
This also means quat2.fromMat4 does not work if the matrix4 has a scale. This at least in the environment I work with, where the scale is not saved into the quat2 transform.
The text was updated successfully, but these errors were encountered: