How to make the globe rotates at a given rate?

Hello all,

Does anyone know how to make the globe rotates at a given rate towards to different directions?

Thanks in advance,

Steven

Any information is appreciated.

在 2014年10月1日星期三UTC-7上午2时21分21秒,Steven写道:

The camera has a rotate function, as well as other functions to programatically control the view. For example:

var viewer = new Cesium.Viewer(‘cesiumContainer’);

var lastNow = Date.now();

viewer.clock.onTick.addEventListener(function(clock) {

var now = Date.now();

var spinRate = 0.25;

var delta = (now - lastNow) / 1000;

lastNow = now;

viewer.scene.camera.rotate(Cesium.Cartesian3.UNIT_Z, -spinRate * delta);

});

Thanks for the reply, Scott.
It solves my problem.

Steven

在 2014年10月3日星期五UTC-7上午7时49分28秒,Scott Hunter写道: