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 12 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
- Implements: IEquatable<BodyUpdateEvent>
public readonly struct PhysicsEvents.BodyUpdateEvent : IEquatable<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. |