Skip to main content

Follow

Used for implementing actions for the [[ActionContext|Action API]].

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Follow(entity: Entity<any>, entityToFollow: Entity<any>, followDistance?: number): Follow
  • Parameters

    • entity: Entity<any>
    • entityToFollow: Entity<any>
    • optionalfollowDistance: number

    Returns Follow

Properties

publicx

x: number

publicy

y: number

Methods

publicisComplete

  • isComplete(): boolean
  • Returns boolean

publicreset

  • reset(): void
  • Returns void

publicstop

  • stop(): void
  • Returns void

publicupdate

  • update(_delta: number): void
  • Parameters

    • _delta: number

    Returns void