physicscallbacks
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| physicscallbacks [2021/02/22 16:31] – created 73.95.178.156 | physicscallbacks [2025/01/15 04:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Physics Callbacks ====== | ====== Physics Callbacks ====== | ||
| + | |||
| + | ===== OnTriggerEnter ===== | ||
| + | * Will be called for all collisions for all trigger colliders on this Rigidbody. | ||
| + | * There is no way to get a reference to ' | ||
| + | |||
| ===== OnTriggerExit ===== | ===== OnTriggerExit ===== | ||
| * Is not called when a Rigidbody which is part of the collision is destroyed. | * Is not called when a Rigidbody which is part of the collision is destroyed. | ||
| - | * Is not called if the Rigidbody/ | + | * Is not called if the Rigidbody/ |
| + | * Is not called if the trigger is disabled. | ||
| + | |||
| + | ===== OnCollisionEnter ===== | ||
| + | * The OnCollisionEnter callback event must be attached to the GameObject with the Rigidbody you want to listen to. ((ie. this event will not fire if it is attached to a child collider)) | ||
| ===== OnCollisionExit ===== | ===== OnCollisionExit ===== | ||
physicscallbacks.1614011505.txt.gz · Last modified: 2025/01/15 04:35 (external edit)