PhysicsCallbacks
Callback targets for object events.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public readonly struct PhysicsCallbacks
Structs
Struct | Description |
|---|---|
| PhysicsCallbacks.BodyUpdateCallbackTargets | Contains all the body update callback targets returned from PhysicsWorld.GetBodyUpdateCallbackTargets. |
| PhysicsCallbacks.ContactCallbackTargets | Contains all the contact callback targets returned from PhysicsWorld.GetContactCallbackTargets. |
| PhysicsCallbacks.JointThresholdCallbackTargets | Contains all the joint callback targets returned from PhysicsWorld.GetJointThresholdCallbackTargets. |
| PhysicsCallbacks.TriggerCallbackTargets | Contains all the trigger callback targets returned from PhysicsWorld.GetTriggerCallbackTargets. |
Interfaces
Interface | Description |
|---|---|
| PhysicsCallbacks.IBodyUpdateCallback | An interface that when implemented by a Object, can be called as a target by PhysicsWorld.SendBodyUpdateCallbacks. |
| PhysicsCallbacks.IContactCallback | An interface that when implemented by a Object, can be called as a target by PhysicsWorld.SendContactCallbacks. |
| PhysicsCallbacks.IContactFilterCallback | An interface that when implemented by a Object, can be called as a target when a PhysicsShape has PhysicsShape.contactFilterCallbacks set to true. The PhysicsWorld the PhysicsShape is in also has to have its PhysicsWorld.contactFilterCallbacks set to true. |
| PhysicsCallbacks.IJointThresholdCallback | An interface that when implemented by a Object, can be called as a target by PhysicsWorld.SendJointThresholdCallbacks. |
| PhysicsCallbacks.IPreSolveCallback | An interface that when implemented by a Object, can be called as a target when a PhysicsShape has PhysicsShape.preSolveCallbacks set to true. The PhysicsWorld the PhysicsShape is in also has to have its PhysicsWorld.preSolveCallbacks set to true. |
| PhysicsCallbacks.ITriggerCallback | An interface that when implemented by a Object, can be called as a target by PhysicsWorld.SendTriggerCallbacks. |