bodyUpdateEvents
Get the body events from the last simulation. The PhysicsBody objects returned should be checked to see if they are valid before accessing as they may have been deleted since this event was produced (see PhysicsBody.isValid ). Any change to the world state can invalidate this data so referring to
Read time 1 minuteLast updated a day ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public ReadOnlySpan<PhysicsEvents.BodyUpdateEvent> bodyUpdateEvents { get; }