Changing Camera Axis not result in changing ViewMatrix

1. A concise explanation of the problem you’re experiencing.

Changing Camera Axis up, right, direction doesn’t Change ViewMatrix ? Is this ok ?

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

According api doc I changed Camera

camera.destination = Cesium.Cartesian3.fromDegrees(-114.0, 40.0, 2000);
camera.direction = Cesium.Cartesian3.negate(Cesium.Cartesian3.UNIT_Z, new Cesium.Cartesian3());
camera.up = Cesium.Cartesian3.clone(Cesium.Cartesian3.UNIT_Y);
camera.right = Cesium.Cartesian3.clone(Cesium.Cartesian3.UNIT_X);

I checked the viewMatrix in the Debugger and i see that nothing changed - is this ok, do i have to do another call for update ?

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

Understanding of movement Scene, objects, … I would like to programm a 3d Cursor or Navigation Help. So I have to understand also what means box and dimensions (see black box in screenshot) and the colored square and the unit vectors.

4. The Cesium version you’re using, your operating system and browser.

1.64.1

Can you check how you’re checking the camera’s matrix and constructing this scene?

Note that camera.destination is not a property of the camera object. You can verify this by looking at the docs: https://cesium.com/docs/cesiumjs-ref-doc/Camera.html?classFilter=camera

If you want to change the camera position you would use camera.position instead, so you would change your code to:

camera.position = Cesium.Cartesian3.fromDegrees(-114.0, 40.0, 2000);

``

That may be one reason you’re not seeing the expected change. Here’s a Sandcastle example that will set those properties on the camera when you press the “set” button. Does this not do what you expect there?