google / model-viewer

Easily display interactive 3D models on the web and in AR!
https://modelviewer.dev
Apache License 2.0
7.02k stars 825 forks source link

make getCameraTarget consistent with getCameraOrbit #4895

Closed elalish closed 2 months ago

elalish commented 2 months ago

getCameraOrbit returns the instantaneous camera position, not the goal position, but getCameraTarget was returning the target goal, which made camera syncing difficult between several model-viewer elements. Now fixed.