Skip to main content

Function: createTransformEcsSystem()

createTransformEcsSystem(): EcsSystem<[PositionEcsComponent]>

Defined in: common/systems/transform-system.ts:207

Creates a system that computes the world position, rotation and scale of every entity from its local transform and, if it has a ParentEcsComponent, its parent's world transform.

Entities (and their entire parent chain) with PositionEcsComponent.isStatic set to true have their world transform computed once and then skipped on every subsequent frame.

Returns​

EcsSystem<[PositionEcsComponent]>

The transform ECS system.