Moving with Physics
So far, the Player, the only Object that moves with the Dynamic Collider Profile and the one that will move with Physics, is actually moving through custom scripting using the Transform API. Every dynamic Object should instead move using the Rigidbody API functions in a way the Physics system understands better, so here we will explore how to move Objects, this time through the Rigidbody component.
In this section, we will examine the following Physics movement concepts:
- Applying forces
- Tweaking Physics
We will start seeing how to move Objects the correct physical way, through forces, and we will apply this concept to the movement of our player. Then, we will explore why real physics is not always fun, and how we can tweak the Physics properties of our Objects to have a more responsive and appealing behavior.
Applying forces
The physically accurate way of moving an Object is through forces, which affect the Object's velocity. To...