Hi again, Anes! I think you found a bug.
The arcRotateCamera is a descendant of targetCamera.
Let’s go code-sniffin’:
The Arc cam has ITS OWN setTarget(), but it uses targetCam for its getTarget(). Here’s arcCam’s setTarget():
Notice that it never sets this._currentTarget property (which lives on targetCam).
Now let’s look at targetCam getTarget (which arcCam uses for itself, too):
Notice that getTarget() returns this._currentTarget… a property that was NOT set by arcCam setTarget().
BUT, arcCam._currentTarget IS set… in line 1020, from within a private func called _getViewMatrix(). So, maybe, arcCams once called this._getViewMatrix(), but quit doing it, for some reason. Not sure, yet.
In this playground, I force-set
camera1._currentTarget = vv; in line 9, and line 10 is now working correctly. I think we need to add a line or two… to arcCam’s setTarget() code.
Nice find, thx for the report!