Collisions & Overlaps
Collision and overlap events, their state, and contact points.
Commonly used
ColliderComponentUsed to define the physical boundaries of an object, allowing it to interact with other objects in Physics, Cloth or Hair simulation.In Physics › Bodies & CollidersOverlapExposes state generated for ColliderComponent overlap events.CollisionA state generated for ColliderComponent collision events.
Guides
Collision and OverlapThe physics system allows you to respond to collisions and overlap through events on the Collider or Body component.Physics Assets and ComponentsPhysics is added to a Lens through a variety of assets and components that allow you to define how physics works on an object and in a scene.BehaviorThe Behavior helper script allows you to create basic interactions without writing any custom script.
All APIs in this topic
Event data
| API | Description |
|---|---|
| CollisionEnterEventArgs | Args used for ColliderComponent.onCollisionEnter, which is triggered when a collision begins. |
| CollisionExitEventArgs | Args used for ColliderComponent.onCollisionExit, which is triggered when a collision ends. |
| CollisionStayEventArgs | Args used for ColliderComponent.onCollisionStay, which is triggered every frame while a collision continues. |
| OverlapEnterEventArgs | Args used for ColliderComponent.onOverlapEnter, which is triggered when the collider begins overlapping another object. |
| OverlapExitEventArgs | Args used for ColliderComponent.onOverlapExit, which is triggered when the collider stops overlapping another object. |
| OverlapStayEventArgs | Args used for ColliderComponent.onOverlapStay, which is triggered every frame while the collider continues overlapping another object. |