Auto Rotation

优质
小牛编辑
135浏览
2023-12-01

Make globe rotate automatically, control globe's rotation speed. The auto-rotation feature is disabled as default, and the default rotation speed is 1.



// enable auto-rotation, 1 is the default speed.
controller.setAutoRotation( true, 1 );

// Disable auto-rotation if globe's auto-rotation has been enabled before.
controller.setAutoRotation( false );