O'Reilly logo

Augmented Reality Game Development by Micheal Lanham

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

Colliders and rigidbody physics

Until now, we were avoiding the discussion of physics, but our game has been using the Unity physics engine ever since we added a character to the scene. The Unity physics engine comes in two parts: one for 2D, and the more complex 3D. A physics engine is what brings life to a game and makes the game environment more natural. Developers can then leverage this engine to quickly and easily add new objects to the world that automatically react naturally. Since we already have a good working example of a game object using the physics engine, we will take a look at that:

  1. In Unity, make sure that the Map scene is loaded.
  2. In the Hierarchy window, expand the MapScene object. Then, select the Player object. Double-click on ...

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