文档

Unity Engine

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 PhysicsWorld.bodyUpdateEvents.
阅读时间1 分钟最后更新于 1 个月前

Definition

public readonly struct PhysicsEvents.BodyUpdateEvent : IEquatable<PhysicsEvents.BodyUpdateEvent>

Properties

Property

Description

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