Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Transform

A Node's world and local transform (position, rotation, scale)

Hierarchy

  • Transform

Index

Constructors

Properties

childs: Transform[]
controlPoints: Vector[]

Transformed control points

localTrasform: Matrix
node: Node
refControlPoints: Vector[]

Original reference control points to apply transform to

worldTransform: Matrix

Accessors

  • get absolutePosition(): Vector
  • get localRotation(): number
  • set localRotation(newRotation: number): void
  • get position(): Vector
  • set position(newPosition: Vector): void
  • get rotation(): number
  • set rotation(degrees: number): void

Methods

  • updateWorldTransform(parentWorldTransform?: Matrix): void
  • Updates this Node's worldTransform using parent's worldTransform (if this node has any parent)

    Parameters

    • Optional parentWorldTransform: Matrix

      worldTransform of parent Node

    Returns void