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

Chapter 4. Physics and the Environment

So far we have chosen not to mess with the physics engine, but we are about to change all of that. In ShiVa, we specify that an object will have to play by the rules of physics by attaching a dynamic controller to the object. The same goes for sensors and colliders. In this way, we can get some robust behavior by adding these characteristics as needed.

In this chapter, we will discuss the following:

  • Sensors and how they can be used to do things like trigger effects in the environment and register collisions
  • Dynamic objects such as asteroids, and the ship, and what it means to tag an object as dynamic
  • Colliders and what characteristics they add to an object

Sensors

Sensors are handy to determine when other objects ...

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