设置camera旋转能实现整个场景的旋转,多用于开场动画
- 开始旋转
function onTickCallback() {
viewer.scene.camera.rotate(Cesium.Cartesian3.UNIT_Z, -0.02);
}
viewer.clock.onTick.addEventListener(onTickCallback);
- 停止旋转
viewer.clock.onTick.removeEventListener(onTickCallback);
效果图(ps:忽略视频里面的水印)
标签:动画,onTick,clock,viewer,旋转,camera,onTickCallback,cesium From: https://blog.csdn.net/AllBluefm/article/details/137502537