Parameters
| Name | Description | Default |
|---|---|---|
world | World whose 2D remote transforms are updated. | — |
Function
transformRemote2D(world: World): voidCopies selected local 2D transform channels from referenced entities.
The source query requires Position2D, Orientation2D, and
Scale2D. The target query requires those same components plus
RemoteTransform2D. A target is skipped when its referenced entity
is missing, stale, or lacks the complete source transform. Otherwise the
system decomposes the remote offset and applies only the channels enabled by
RemoteTransform2D#copyTranslation,
RemoteTransform2D#copyOrientation, and
RemoteTransform2D#copyScale.
For each enabled channel, the system applies the corresponding decomposed offset: translation adds the offset position, orientation combines with the offset orientation, and scale multiplies by the offset scale. Each selected value is written into the target’s local transform component. The remote-transform plugin registers this function in the repeating Update schedule.