O'Reilly logo

Learning ShiVa3D Game Development by Wade Tracy

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

The physical setup

In our game, we have our ship, moving asteroids, and stationary obstacles such as the tunnel and rocks. Each object type will need a different combination of sensors, dynamics, and colliders to do their job properly. Let's start by configuring the ship.

Configuring the ship sensors

We will use a set of sensors to approximate the shape of the ship. By giving the ship a sensor, we will be able to detect when the ship collides with obstacles and when it enters an area that triggers the spawning of asteroids. To add the sensors, do the following steps:

  1. Right-click on the ship object in the Scene Viewer or Scene Explorer window.
  2. Go to Attributes | Sensor | Add a box sensor. Repeat this step twice for a total of three sensors.
  3. Switch to ...

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