Skip to main content

Interface: PositionEcsComponent

Defined in: common/components/position-component.ts:17

ECS-style component interface for position.

Extends

Properties

isStatic?

optional isStatic?: boolean

Defined in: common/components/position-component.ts:27

When true, signals to createTransformEcsSystem that local will never change after it is first computed, so world can be computed once and skipped on subsequent frames. This only takes effect once the entity and its entire parent chain (if any) are also static, so a static entity with a moving parent still has its world updated every frame.

Mutating local after world has been computed has no effect.


local

local: Vector2

Defined in: common/components/position-component.ts:10

Inherited from

PositionDefaultedOptions.local


world

world: Vector2

Defined in: common/components/position-component.ts:11

Inherited from

PositionDefaultedOptions.world