We have some models that contain multiple tilesets, which is causing the navigation/rotation behaviour in the viewer to behave erratically.
Ideally I’d like to dynamically update and recentre the rotation point after the camera stops moving. i.e. when I flyTo a tileset or after the camera is moved.From looking at other posts/sandcastle, it appears that this could be achieved by using the camera moveEnd event and the the lookAtTransform function.
Is there a way to find the centre point of the viewer each time the camera moves regardless of the model that is loaded?
I had been referring to the ‘Set camera reference frame’ example here in Sandcastle - Cesium Sandcastle