This page describes which event functions Unity generates based on the configuration of each collider in a collision pair.
When a pair of colliders make contact, they generate collision detection messages if the following are both true:
The following table describes each combination of collider types. A “Y” indicates a combination that can generate collision detection and collision messages.
Collision detection occurs and messages are sent upon collision | ||||||
---|---|---|---|---|---|---|
Static collider | Dynamic collider | Kinematic collider | Static trigger collider | Dynamic trigger collider | Kinematic trigger collider | |
Static collider | サポート | |||||
Dynamic collider | サポート | サポート | サポート | |||
Kinematic collider | サポート | |||||
Static trigger collider | ||||||
Dynamic trigger collider | ||||||
Kinematic trigger collider |
Remember that Unity only applies physics forces to collider GameObjects that have a physics body (a Rigidbody or ArticulationBody). When a physics body collider collides with a static collider, only the physics body collider behavior changes as a result of the collision (for example, it might bounce or slow down as a result of the collision).
Trigger messages occur in the following circumstances:
The following table describes each combination of collider types. A “Y” indicates a combination that can generate trigger messages from any trigger collider in the pair.
Trigger messages are sent upon collision | ||||||
---|---|---|---|---|---|---|
Static collider | Dynamic collider | Kinematic collider | Static trigger collider | Dynamic trigger collider | Kinematic trigger collider | |
Static collider | サポート | サポート | ||||
Dynamic collider | サポート | サポート | サポート | |||
Kinematic collider | サポート | サポート | サポート | |||
Static trigger collider | サポート | サポート | サポート | サポート | ||
Dynamic trigger collider | サポート | サポート | サポート | サポート | サポート | サポート |
Kinematic trigger collider | サポート | サポート | サポート | サポート | サポート | サポート |