Table of Contents

Struct BodyMoveEvent

Namespace
Box3D
Assembly
Box3D.NET.dll

A body was moved by the simulation.

public readonly record struct BodyMoveEvent : IEquatable<BodyMoveEvent>

Implements

Inherited Members

Remarks

Only raised for bodies the solver moved, not for ones the application moved itself. Walking this list is the efficient way to push transforms into game objects: it arrives as one contiguous array containing only what changed, instead of asking every body for its transform.

Properties

Body

Gets the body that moved.

FellAsleep

Gets a value indicating whether the body fell asleep during this step.

Position

Gets the new world position of the body origin.

Rotation

Gets the new world rotation.