Skip to content

Fix initial camera rotation to be looking at center #801

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

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

vincentfretin
Copy link
Contributor

Fix initial camera rotation to be looking at center, same as in EditorControls when you start to rotate.

You don't see a difference in the inspector with the camera position at 0 1.6 2.
But with an initial camera position at 0 15 2 for example, you can see the camera jump when you start to rotate, that's because EditorControls rotate function forces the camera position to be on a sphere around the center that is at 0 1.6 0 defined at

controls.center.set(0, 1.6, 0);

@dmarcos dmarcos merged commit 65433d1 into aframevr:master Feb 7, 2025
1 check passed
@vincentfretin vincentfretin deleted the fix-lookat branch February 7, 2025 17:57
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

Successfully merging this pull request may close these issues.

2 participants