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, actually moves through custom scripting using the Transform API. Instead, every dynamic object should move using the Rigidbody API functions in a way the physics system understands better. As such, 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 by 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’...