How do I achieve fitToBox or setLookAt kind of CameraControls features with OrbitControls?
Changing OrbitControl target (like LookAt
with regular camera) can be quite acrobatic.
I posted a code sample here, to reset and redefine orbit control values with a new target at runtime.
it can be combined with functions to change camera fov as well, but this is very case-specific. There isn’t universals ways to achieve this.
1 Like