Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PathCursor

A cursor which tracks a point on a path

Hierarchy

  • PathCursor

Index

Constructors

constructor

  • Initializes the path cursor

    Parameters

    • _path: Path2

      The path to track

    Returns PathCursor

Properties

animationsSearch playground for animations

animations: Animation[]

The animation array of the path cursor

valueSearch playground for value

value: number

The value of the path cursor

Methods

getPointSearch playground for getPoint

  • Gets the cursor point on the path

    Returns Vector3

    A point on the path cursor at the cursor location

moveSearch playground for move

  • Moves the cursor by the step amount If the step amount is greater than one, an exception is thrown

    Parameters

    • step: number

      The amount to move the cursor

    Returns PathCursor

    This path cursor

moveAheadSearch playground for moveAhead

  • Moves the cursor ahead by the step amount

    Parameters

    • Optional step: number

      The amount to move the cursor forward

    Returns PathCursor

    This path cursor

moveBackSearch playground for moveBack

  • Moves the cursor behind by the step amount

    Parameters

    • Optional step: number

      The amount to move the cursor back

    Returns PathCursor

    This path cursor

onchangeSearch playground for onchange

  • Executes a function on change

    Parameters

    Returns PathCursor

    This path cursor

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method