SendBodyUpdateCallbacks()
Send all current PhysicsWorld.bodyUpdateEvents where the PhysicsBody involved are valid (see PhysicsBody.isValid ) and have a callback target assigned (see PhysicsBody.callbackTarget ). Only callback targets that implement PhysicsCallbacks.IBodyUpdateCallback will be called. This will be called automatically if PhysicsWorld.autoBodyUpdateCallbacks is true. This must be called on the main thread.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public void SendBodyUpdateCallbacks()