Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RotateTo

Hierarchy

  • RotateTo

Implements

Index

Constructors

constructor

  • Parameters

    • actor: Actor
    • angleRadians: number
    • speed: number
    • Optional rotationType: RotationType

    Returns RotateTo

Properties

Private _actor

_actor: Actor

Private _direction

_direction: number

Private _distance

_distance: number

Private _end

_end: number

Private _longDistance

_longDistance: number

Private _rotationType

_rotationType: RotationType

Private _shortDistance

_shortDistance: number

Private _shortestPathIsPositive

_shortestPathIsPositive: boolean

Private _speed

_speed: number

Private _start

_start: number

Private _started

_started: boolean = false

Private _stopped

_stopped: boolean = false

x

x: number

y

y: number

Methods

isComplete

  • isComplete(actor: Actor): boolean
  • Parameters

    Returns boolean

reset

  • reset(): void
  • Returns void

stop

  • stop(): void
  • Returns void

update

  • update(delta: number): void
  • Parameters

    • delta: number

    Returns void