Hey @Freeman, welcome to the community! As far as changing the pivot (target) without changing the look of the camera’s perspective, the way to do this is a bit complex. The basic steps to accomplish this are
- Set the target of your ArcRotateCamera to the desired target (eg. red ball)
- Set alpha/beta values for new position to match old position so that current camera direction is parallel to old camera direction
- Set radius so that current camera viewport and old camera viewport are on the same plane (perpendicular to camera direction)
- Move camera into place with targetScreenOffset
There are probably several ways to do this but if you are able to use inertialPanningX/Y to move your camera (and camera’s target) into place, you can use the same values for the targetScreenOffset as they both move the camera with respect to the screen, as opposed to world.
I know that there’s another discussion about this (How to change the camera target without having that target automatically centered on the screen - #7 by foufara) but there currently is not definitive solution. You might be able to find some inspiration in this thread though.