Gravity effect on objects

One way to make your game look more realistic is to incorporate physics into the game. Luckily for us, Unity has a built-in physics engine that we can take advantage of. Even though there are numerous ways of implementing physics, two of the easiest way is to use a Rigidbody or colliders.

Rigidbodies are essentially a way to control an object’s position through physics. You have direct control on how heavy the object is, the drag in which they face when moving on a slope or flying, and, most importantly, are they affected by gravity.

These might seem simple, but with a few changes, they can throw off the timing between your enemies and the player. For example, although everything in the real life are affected by gravity, in Unity, you might not want to implement it, especially if the object is flying.

One of the cornerstones of Unity, colliders help detect any collision between this object and another. Furthermore, you can have more than 1 collider on any one object. Moreover, unlike Rigidbodies, colliders allow you to reform it in the game. As a result, you can have a weird looking collider which still work.