viewer.trackedEntity = entity; var camera = viewer.camera; camera.flyTo({ destination: Cesium.Cartesian3.fromDegrees(data.waypoints[0], data.waypoints[1], 5000), orientation: { heading: Cesium.Math.toRadians(0), pitch: Cesium.Math.toRadians(-30), roll: 0 }, duration: 3, complete: function() { } });Maybe not set viewer.trackedEntity until after the flyTo is finished? I'm not sure if flyTo will chase a moving target, can you continuously change its destination in mid-flight?
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
viewer.clock.onTick.addEventListener(function(clock)
{
console.log(viewer.scene.camera.transform);
});