O'Reilly logo

Babylon.js Essentials by Julien Moreau-Mathis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required