Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

bodyThe body this event relates to.
fellAsleepWhether the body fell asleep or not.
transformThe current transform of the body.