PhysicsCallbacks.IContactCallback
An interface that when implemented by a Object, can be called as a target by PhysicsWorld.SendContactCallbacks.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Interface
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public interface PhysicsCallbacks.IContactCallback
Methods
Method | Description |
|---|---|
| OnContactBegin2D | Called when a PhysicsEvents.ContactBeginEvent for the object occurs. This will always be called on the main-thread after the simulation has finished. |
| OnContactEnd2D | Called when a PhysicsEvents.ContactEndEvent for the object occurs. This will always be called on the main-thread after the simulation has finished. |