In my project, I have an ArcRotateCamera in my scene and, at some point in time, I would like to move the camera around programmatically. However, changing camera.position.x, for example, doesn’t seem to be working.
Here is a PG where I have set up a similar scenario. I am trying to change the position of the camera inside registerBeforeRender, but it seems like it is not working. https://www.babylonjs-playground.com/#12WBC#1248
Also for a more in depth example I suggest you take a look at this demo. I like it a lot cause it shows panning with the mouse and then updating the position of the camera based on that: https://playground.babylonjs.com/#5QBZT0#9
Take a look at line 160 where it updates the target instead. camera.target.addInPlace(panVec);