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.
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: