Changing heading causes rotateLeft/rotateRight to go in the wrong direction

Hi,

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 ?

Regards

Rüdiger

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.

Hi Dzung,

I asked about rotateLeft/rotateRight and rotateUp/rotateDown not move !

Any Idea ?

Rüdiger

ok I look at the sandcastle - maybe change my rotate-Routine

Regards

Rüdiger

Hi Dzung,

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

Any Idea ?

Rüdiger