Chapter 15: Physics Collisions and Health System

As games try to simulate real-world behaviors, one important aspect to simulate is physics, which dictates how Objects move and how they collide with each other, such as the collision of players and walls or bullets and enemies. Physics can be difficult to control due to the myriad of reactions that can happen after a collision, so we will learn how to properly configure it to obtain a semi-accurate Physics, which will generate the desired arcade movement feeling but get collisions working—after all, sometimes, real life is not as interesting as videogames.

In this chapter, we will examine the following collision concepts:

  • Configuring Physics
  • Detecting collisions
  • Moving with Physics

First, ...

Get Hands-On Unity 2020 Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.