The Documentation says:
“Universal Camera was introduced with version 2.3 of Babylon.js and is controlled by the keyboard, mouse, touch, or gamepad depending on the input device used, with no need for the controller to be specified. This extends and replaces the Free Camera, the Touch Camera and the Gamepad Camera, which are all still available.
The Universal Camera is now the default camera used by Babylon.js.”
API for FreeCamera class says:
Please consider using the new UniversalCamera instead as it adds more functionality like the gamepad.
Still when you open the Playground or create a new Playground you’ll have FreeCamera by default.
- Change the default Playground camera to UniversalCamera.
- Add the snippet to PG with UniversalCamera.