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

Replace <group> with quaternions #6

Open
neftaly opened this issue Apr 27, 2023 · 1 comment
Open

Replace <group> with quaternions #6

neftaly opened this issue Apr 27, 2023 · 1 comment

Comments

@neftaly
Copy link
Collaborator

neftaly commented Apr 27, 2023

At the moment we calculate camera positioning by using a <perspectiveCamera> inside a <group>.

It would be better to use a calculateCameraPosition({ coords, origin }) function that returned { position, rotation }, that we would apply to the perspectiveCamera ref.

@neftaly
Copy link
Collaborator Author

neftaly commented Apr 27, 2023

This would also be a useful helper to export (whole library could be used independently of r3f/three)

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