Configuring Physics
Unity's Physics system is prepared to cover a great range of possible gameplay applications, so configuring it properly is important to get the desired results.
In this section, we will examine the following Physics settings and concepts:
- Setting shapes
- Physics Object types
- Filtering collisions
We are going to start by learning about the different kinds of colliders that Unity offers, so that we can then learn about different ways to configure those to detect different kinds of Physics reactions (collisions and triggers). Finally, we will discuss how to ignore collisions between specific Objects to prevent situations such as the Player's bullets damaging them.
Setting shapes
At the beginning of this book, we learned that objects usually have two shapes: the visual shape, which is basically the 3D mesh, and the physical one, known as the collider, which the Physics system uses to calculate collisions. Remember that the idea...