Class: ScaleComponent
Defined in: common/components/scale-component.ts:7
Component to represent the scale of an entity in 2D space.
Extends
Constructors
Constructor
new ScaleComponent(
x,y):ScaleComponent
Defined in: common/components/scale-component.ts:22
Creates an instance of ScaleComponent.
Parameters
x
number = 1
The scale factor along the x-axis.
y
number = 1
The scale factor along the y-axis.
Returns
ScaleComponent
Overrides
Properties
local
local:
Vector2
Defined in: common/components/scale-component.ts:11
The local scale of the entity relative to its parent (if any).
world
world:
Vector2
Defined in: common/components/scale-component.ts:15
The world scale of the entity in the global coordinate space.
Accessors
id
Get Signature
get
staticid():symbol
Defined in: ecs/types/Component.ts:12
The unique id of the component.
Returns
symbol