Removing Camera X rotation with UniversalCamera

How do I disable camera X rotation with the UniversalCamera so that the camera does not rotate up and down?

You could just reset it on every frame:

Babylon.js Playground (babylonjs.com)

That would probably be the simplest solution…

1 Like