Is it possible to make the universal camera rotate up and down when swiping up and down?
Hello, you can customize your inputs Customizing Camera Inputs | Babylon.js Documentation (babylonjs.com)
cc @PolygonalSun too
1 Like
With the UniversalCamera, it has specific behaviors related to touch. If you’re looking for something more like what the FreeCamera does (single finger movement rotates the camera), you could try removing the touch controls and toggling the touchEnabled
flag to be true:
var camera = // UniversalCamera;
const touch = camera.inputs.attached.touch;
camera.inputs.remove(touch);
camera.inputs.attached.mouse.touchEnabled = true;
3 Likes
thanks it works