Camera Rotate Broken

Sometime in the last 24 hours, camera rotating has broken for pointer locked universal cameras (first person cameras).

Here’s a playground demonstrating: Babylon.js Playground

You should be able to click on the scene, and the camera will rotate with your mouse.
But, it only rotates when you hold down left click while rotating.

I think it’s something for our input expert @PolygonalSun.

1 Like

Lemme take a look at what’s going on

Okay, so here’s what’s going on. There was a recent bug fix for touch but there was a side effect that resulted in pointer lock not working properly. I am finishing up a fix and will have it in PR later today.

1 Like

Fix is in PR: FreeCameraMouseInput: Fix for PointerLock Movement by PolygonalSun · Pull Request #13258 · BabylonJS/Babylon.js (


PR is merged

1 Like

Doesn’t appear to be fixed in the PG or in my live project

Yeah, it looks like it’s currently in 5.33.0 and should be live when that version is live.

1 Like