Physics Introduction
Elements in the physics world can be divided into rigid body. We can adding physics elements by adding a collider (Collider) or rigid body (RigidBody) component to the game object. The physics system will perform calculations on these elements to make their behaviors the same with the real world.
- Create a new shape Cube;
- Click Add Component on the Inspector panel witch is on the right of editor;
- add a RigidBody component in order to make it have physical behavior.
In this way we get a physical element that has both a collider and a physical behavior.
We can add a ground to the world. Following the steps 1,2,and 3, you can add another Plane with collider only.
Finally, click the run button, you can see the changes of physical elements in the scene. The final scene is shown in the following figure:
- A RigidBody component
- One or more Collider components
More Detailed Modules
Additional physics system will be introduced in more detail through the following modules: