Guys, i got a problem with on some Android pad can't use universalCamera to move on touch

on freeCamera touch to look around is ok


but i cant touch to move or look on universalCamera

most of mobile phone dont have this problem , only on some android pad

my pad is xiaomi pad 5 pro

here is playground page testUni | Babylon.js Playground (babylonjs.com)

cc @PolygonalSun

So I was taking a look at the code and I suspect that there may be an issue with how the touch controls are distinguishing between touch and non-touch inputs. I’m currently working on a fix for this that should be in later today.

In the meantime, if you’re just trying to get the same behavior as the FreeCamera, you should be able to enable that with:

camera.inputs.attached.mouse.touchEnabled = true;

This will enable the mouse logic to be used by touch input.

1 Like

PR created: Fixed Logic for FreeCameraTouchInput to properly detect when input is mouse input by PolygonalSun · Pull Request #12541 · BabylonJS/Babylon.js (github.com)

2 Likes

PR is merged

2 Likes