Working with Primitive Colliders.
Objective: Working with Primitive Colliders.
In unity we have 3 types of primitive colliders, box collider ,capsule collider and sphere collider.
Why talking Primitive Colliders Suleiman?
We want to make sure we use them as much as possible since they help with optimization of our physics Interaction in our game.
How to choose primitive collider before adding to game Object?
We want to look at the overall shape and use the collider that is an approximate shape of the object.
How to Edit our Collider to approximate match the object.
It may be you want to edit the collider we may need to edit the shape to match the object, to do this go to inspector <Box Collider< Edit Collider ,hit the last tab and drag the dot to resize the shape of the collider.
Important When work with collider to pay attention to this option, Center and Size.
Now I will ad primitive collider to the Oxygen gas, for this one capsule collider seem to match the shape well.
Last add Rigidbody to those two object with collider.
See you into the next one.