Simulate physics
Physics simulation is pretty different from the collisions system since it does not occur on the cameras but on the objects of the scene itself. In other words, if physics is enabled (and configured) on a box, the box will interact with other meshes in the scene and try to represent the real physical movements.
For example, let's take a sphere in the air. If you apply physics to the sphere, the sphere will fall until it collides with another mesh and according to the given parameters, it will bounce and roll in the scene.
Note
The example files reproduce the behavior of a sphere that falls on the box in the middle of the scene.
Enable physics in Babylon.js
In Babylon.js, physics simulations can be only done using plugins. Two plugins ...
Get Babylon.js Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.