Rotate to Position (With Animation)

I am new to CesiumJS and need some advice:

Is there a way to rotate/orient a camera so that a coordinate (Cartesian3) is in the centre of the screen? Can this can be achieved with the flyTo function, so that it takes advantage of the easing animation?

Much appreciated.

Welcome to the community @Ethan_Moon!

Yes, This can be easily achieved using flyTo! You just need to set the desired destination

function flyToSanDiego() {
  Sandcastle.declare(flyToSanDiego);
  viewer.camera.flyTo({
    destination: Cesium.Cartesian3.fromDegrees(-117.16, 32.71, 15000.0),
  });
}

Check out the Camera Sandcastle for lots of other examples of using the camera flyTo functions.

You can also check out the api docs if that’s easier: Camera.flyTo()