Skip to content

Conversation

vincentfretin
Copy link
Contributor

The calculation I did in #760 was not quite right.
The center was assumed to be in local coordinates but it is actually already in world coordinates, so localToWorld increased the y value so the camera was much too high. The issue is not much visible in a scene where all models are on the ground, it's much more visible on a model in the air. Even for models on the ground, that fixes the glitch when you start rotating after focusing an element.

Before
focus_before

After:
focus_after

@vincentfretin
Copy link
Contributor Author

@dmarcos this is ready to be merged

@dmarcos dmarcos merged commit d8df296 into aframevr:master Sep 16, 2025
1 check passed
@dmarcos
Copy link
Member

dmarcos commented Sep 16, 2025

thank you!

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