Chapter 7. Defining Actions on Objects

Let's go further with the gameplay in Babylon.js. The framework provides an ActionManager class that allows us to manage and execute actions when a trigger is raised by the engine.

For example, imagine a scene with a button. When the button is pushed (left-click), the light(s) in the scene should be turned off, except one. This is only an example. In this chapter, we will cover the following topics:

  • Defining actions on objects
  • Using conditions to control the actions graph
  • Using the Actions Builder in 3ds Max

Defining actions on objects

The Babylon.js framework comes with a collection of distinct actions. You'll find actions that can play a sound, stop a sound, interpolate a property of an object, set a value of ...

Get Babylon.js Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.