Rigidbody Basics
Objective: Rigidbody Basics.
When you want to add physics to object we add Rigidbody to that object .
Now select the game object<Inspector <add Component, search for Rigidbody and click it to add it.
Note: Rigidbody is 3D Rigidbody and Rigidbody2D is for 2D game, it does not mean 3D Rigidbody wont work on 2D environment.
If we hit play the Object will pass through the floor.
In order for collection to happen a game Object must have component called a Collider, their are many type of collider keep in Mind.
To solve this add Bix Collider to our box, this collider will automatic match the shape and size of the object.
Now if we play the editor our object will hit on the ground like normal Object.
Now I will add both component to other box and hit play.
Bonus, you can find Rigidbody and Collider to other option called Physics or Physics2D
See you into the next one.