Screen integration with mouse

Hello, when you click on the screen as seen in pg, the mouse disappears and merges with the canvas. I’ve looked at the codes but nothing about it. How that happens?

Third Person Example | Babylon.js Playground (babylonjs.com)

In the original version (https://playground.babylonjs.com/#G703DZ#94) of PG there was setupPointerLock function, which is now missing from your PG, that is why mouse behaviour seemes to be a bit strange.

2 Likes

You are the hero :). Thank you. Even though I deleted the function, it actually surprised me that it worked that way.