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
When using Quaternionf().identity().lookAlong(target.position - camera.position, Vector3f(0, 1, 0)), the code doesn't seem to properly look at the object. Instead, it seems to roll the camera. In the attached image, the cube should become centered. (Cube is centered on 0,0,0, camera is at 1,1,1, target.position - camera.position correctly returns -1,-1,-1)
The text was updated successfully, but these errors were encountered:
When using
Quaternionf().identity().lookAlong(target.position - camera.position, Vector3f(0, 1, 0))
, the code doesn't seem to properly look at the object. Instead, it seems to roll the camera. In the attached image, the cube should become centered. (Cube is centered on 0,0,0, camera is at 1,1,1, target.position - camera.position correctly returns -1,-1,-1)The text was updated successfully, but these errors were encountered: