skip to content
Uninomicon
Documenting the dark corners of the Unity Engine.
User Tools
Register
Log In
Site Tools
Search
Tools
Edit this page
Start a Discussion
Restore
Old revisions
Fold/unfold all
Backlinks
Recent Changes
Media Manager
Sitemap
Register
Log In
>
Recent Changes
Media Manager
Sitemap
Trace:
•
Physics Callbacks
physicscallbacks
This is an old revision of the document!
Table of Contents
Physics Callbacks
OnTriggerEnter
OnTriggerExit
OnCollisionExit
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.
1)
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
2)
.
[
research needed
]
Is not called if the trigger is disabled.
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).
[
research needed
]
1)
https://gamedev.stackexchange.com/a/185095/1669
2)
Such as when a collider is moved to a new Rigidbody
physicscallbacks.1614014587.txt.gz
· Last modified: 2021/02/22 17:23 by
73.95.178.156
Page Tools
Edit this page
Start a Discussion
Restore
Old revisions
Backlinks
Fold/unfold all
Back to top