Tilt function


I am trying to simulate the tilt function (which works through middle-mouse drag or Left click + Ctrl Button).

i.e, On click of any button a function is called, which tilts the globe taking centre position and (simulation of Middle mouse drag in vertical direction).

If I use directly the function “camera.rotateUp” It is rotating the globe instead of tilt.

Please give idea on how to implement this.


The code for our current mouse interaction can be found here https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/ScreenSpaceCameraController.js

The function that handles tilting is called tilt3D. Using that as a base you should be able to figure out how to do the same thing programmatically.