Book Image

Babylon.js Essentials

By : Julien Moreau-Mathis
Book Image

Babylon.js Essentials

By: Julien Moreau-Mathis

Overview of this book

Are you familiar with HTML5? Do you want to build exciting games and Web applications? Then explore the exciting world of game and Web development with one of the best frameworks out there: Babylon.JS. Starting from the beginning, the book introduces the required basics for 3D development and the knowledge you need to use the Babylon.js framework. It focuses on the simplicity provided by Babylon.js and uses a combination of theory and practice. All the chapters are provided with example files ready to run; each example file provides the previously learned features of the framework. Finally, developers will be ready to easily understand new features added to the framework in the future.
Table of Contents (15 chapters)
Babylon.js Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

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