I’m here again with another question, but this one is rather based on my inexperience with JavaScript. I have a problem with pointer lock, how do I get the change in mouse position even with pointer lock on, I know it’s possible because Babylon’s ArcRotateCamera does it but i don’t know how.
this is the playground I’m working in:
https://www.babylonjs-playground.com/#G703DZ#26
I’m using scene.onPointerMove on line 131 and the pointer lock on line 236.
I have used log in the onPointerMove function and observed that it prints even with the pointer lock on, but it prints the same coordinates as where the mouse was before the lock.