How to follow object and enable orbitcontrol (zoom / rotation)

After adding the camera to object3d, the camera is following the object on the way that I want, but when the object position go far from (0,0,0) the camera not rotating correctly, I found that the camera position always targeting the object on the position (0,0,0) while the target on the orbitcontrol is the real object position eg. (121.1, 1, 34.32).

Maybe this will be helpful: Edit fiddle - JSFiddle - Code Playground

1 Like

I am wondering how I can achieve this with camera under Object3d!
the follow cam just working fine with the quaternion
(follow object and slerp the goal with the quaternion) … but the rotation when I Orbit the looking angle so weird…