Collider interactions
How collisions can call events and functions to trigger changes at run time.
Read time 1 minuteLast updated 5 days ago
When two colliders make contact, you can call functions to trigger other events in your project via scripting.
The two essential function types for collision interaction are and .
OnCollisionOnTriggerTopic | Description |
|---|---|
| Use collisions to trigger other events | Overview of collision events and triggers, and the scripting API you need to use. |
| Interaction between collider types | How the different collider types interact with each other to call |
| OnCollision events | How colliders can call events when they physically collide. |
| OnTrigger events | How colliders can call events when one enters the space of another in a non-physical collision. |
| Create and configure a trigger collider | Create a trigger collider and configure its associated GameObject to correctly call events on trigger interactions. |
| Example scripts for collider events | Example scripts for |