Skip to main content

Class: ScaleComponent

Defined in: common/components/scale-component.ts:7

Component to represent the scale of an entity in 2D space.

Implements

Constructors

Constructor

new ScaleComponent(x, y): ScaleComponent

Defined in: common/components/scale-component.ts:26

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

Properties

local

local: Vector2

Defined in: common/components/scale-component.ts:13

The local scale of the entity relative to its parent (if any).


name

name: symbol

Defined in: common/components/scale-component.ts:8

The unique name of the component.

Implementation of

Component.name


world

world: Vector2

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

The world scale of the entity in the global coordinate space.


symbol

readonly static symbol: typeof symbol

Defined in: common/components/scale-component.ts:19