PhysicsEvents.BodyUpdateEvent
An event produced by a PhysicsBody that indicates the simulation changed the body in one of the following ways: The body transform was changed. The body fell asleep. See _bodyUpdateEvents.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public readonly struct PhysicsEvents.BodyUpdateEvent
Properties
Property | Description |
|---|---|
| body | The body this event relates to. |
| fellAsleep | Whether the body fell asleep or not. |
| transform | The current transform of the body. |