synctransform2D

View sourcesynctransform2D(world: World): void

Synchronizes local 2D transform components into each entity’s GlobalTransform2D.

The query requires Position2D, Orientation2D, Scale2D, and GlobalTransform2D on the same entity. For every match, GlobalTransform2D.compose writes the local position, orientation, and scale into the existing global transform. This system does not traverse the hierarchy; use propagateTransform2D for parent propagation. The transform plugin registers it in the repeating Update schedule before that propagation system.

Parameters

NameDescriptionDefault
world

World whose 2D transform entities are synchronized.

—