Parameters
| Name | Description | Default |
|---|---|---|
world | World whose 2D hierarchies are propagated. | — |
Function
propagateTransform2D(world: World): voidPropagates 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.