var viewer = new Cesium.Viewer('cesiumContainer');
var camera = viewer.scene.camera;
viewer.scene.preRender.addEventListener(function() {
camera.setView({
orientation: {
heading: 0,
pitch: camera.pitch,
roll: camera.roll
}
});
});
--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/ZKimT0pYt80/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@Onkel Tem have you found any solution of the problem? thank
在 2017年1月13日星期五 UTC+8上午10:13:46,Onkel Tem写道:
Is there a way to freeze Earth axis from bending left or right? I want it have the constant 0° angle relative to Y axis, no matter what I'm doing. Currently even zooming in and out makes Earth to rotate in random directions. In other words how prevent "compass arrow" from arbitrary rotations?
--