Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lookAlong not working as expected #362

Open
Martmists-GH opened this issue Feb 6, 2025 · 0 comments
Open

lookAlong not working as expected #362

Martmists-GH opened this issue Feb 6, 2025 · 0 comments

Comments

@Martmists-GH
Copy link

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)

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant