I would like to do Cameramovement wit key/Buttons.
so I choose one function to set the heading of the camera. After that I want to do a movement similar to 2d - left/right and up/down - I use rotateLeft/rotateRight and rotateUp/rotateDown. But what happens:
When I set the heading to 90° the left/right goes up and down and the up/down goes left/right.
Can anyone help ?
Do I have to set a new so called reference frame afterthe chage of the heading ?
For moving left/right and up/down, moveLeft, moveRight, moveUp and moveDown would work regardless of the heading. Here is an example: Sandcastle link. The camera’s heading in the example is 100 degrees.
I have seen the sandcastle and changed my routines - comparing the moves with the mouse-move I think, that the movement
“push left mouse button, moving up/down” is not include in the Cesium routine of the camera,
moveup/movedown → movng map up/down but not similar to mouse move
moveleft/moveright → push left mouse button, moving left/down
moveforward/movebackward → zoom in/out