Chapter 5. Create Collisions on Objects

The previous chapters introduced the 3D programming basics and Babylon.js. You can easily create and customize your scenes using the materials and meshes provided by your designer as you now understand the complete workflow.

In this chapter, let's play with the gameplay itself and create interactions with objects in the scene by creating collisions and physics simulations. Collisions are important to add realism to your scenes if you want to walk without crossing the walls. Moreover, to make the scenes more alive, let's introduce the physics simulation with Babylon.js and finally, see how easy it is to integrate these two notions in your scenes:

  • Checking collisions in a scene
  • Simulatating physics

Checking collisions ...

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.