propagateTransform2D

View sourcepropagateTransform2D(world: World): void

Propagates 2D global transforms through entity hierarchies.

The root query starts at entities with EntityHandle and Children that do not have Parent. Each root is then traversed breadth-first through the Children/Parent relationship with GlobalTransform2D data on both sides. For every matched parent-child edge, the system multiplies the parent and child global transforms with Affine2.multiply and copies the result into the child transform in place. The transform plugin registers this function in the repeating Update schedule after 2D synchronization.

Parameters

NameDescriptionDefault
world

World whose 2D hierarchies are propagated.

—