Options
All
  • Public
  • Public/Protected
  • All
Menu

The transform component is used to store the position, rotation and scale of an entity.

Hierarchy

Index

Constructors

constructor

Properties

children

children: Set<Transform> = ...

Children of the entity.

enabled

enabled: boolean

Is the component enabled.

entity

entity: Entity

Entity that this component is attached to.

parent

parent: Transform = null

Entity's parent in the hierarchy.

position

position: Vector2 = ...

Position of the entity.

previousPosition

previousPosition: Vector2 = ...

Previous position of the entity. Used for interpolation.

rotation

rotation: number = 0

Rotation of the entity.

scale

scale: Vector2 = ...

Scale of the entity.

size

size: Vector2 = ...

Size of the entity.

Accessors

id

  • get id(): string

Methods

awake

  • awake(): void

lateUpdate

  • lateUpdate(): void

start

  • start(): void

translate

  • translate(translation: Vector2): void

update

  • update(): void

Generated using TypeDoc