====== 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 'this' trigger collider that was entered.((https://gamedev.stackexchange.com/a/185095/1669)) ===== OnTriggerExit ===== * Is not called when a Rigidbody which is part of the collision is destroyed. * Is not called if the Rigidbody/Collider is recreated internally((Such as when a collider is moved to a new Rigidbody)).[//[[:wiki:tag:research-needed|research needed]]//] * 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 ===== * Is not called when a Rigidbody which is part of the collision is destroyed. * Is not called if the Rigidbody/Collider is recreated internally (due to modifications). [//[[:wiki:tag:research-needed|research needed]]//]