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 (

In the original version ( of PG there was setupPointerLock function, which is now missing from your PG, that is why mouse behaviour seemes to be a bit strange.


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