Box Collider & Box Trigger in Unity
Notes:
How to use Box Collider & Box Trigger in Unity:
Box collider:
- a collider; which comes in box shape
- can be used to wrap any box shape game object like wall, door, ground etc.
Size:
- indicates size of the collider along x, y and z axis
Center:
- indicates offset of the collider from the center of a game object
Edit Collider Tool:
- enables controls for editing size of the collider
Material:
- indicates physic material of a game object
Physic material determines how a collider must behave in the physical world.
Ex: rubber, plastic, wood, stone, metal, glass, ice etc.
Is Trigger:
- converts the collider in to a trigger;
- Trigger indicates non solid volume i.e. liquid, gas or vacuum, where as collider indicates solid volume
- Trigger is used to create a volume or a space, which senses and triggers events when some game object enters, stays or exits that particular space.
Ex: Water pool, Security Room, Danger Zone etc.