Options
All
  • Public
  • Public/Protected
  • All
Menu

A cursor which tracks a point on a path

Hierarchy

  • PathCursor

Index

Constructors

  • Initializes the path cursor

    Parameters

    • _path: Path2

      The path to track

    Returns PathCursor

Properties

animations: Animation[]

The animation array of the path cursor

value: number

The value of the path cursor

Methods

  • Gets the cursor point on the path

    Returns Vector3

    A point on the path cursor at the cursor location

  • 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

  • Moves the cursor ahead by the step amount

    Parameters

    • Optional step: number

      The amount to move the cursor forward

    Returns PathCursor

    This path cursor

  • Moves the cursor behind by the step amount

    Parameters

    • Optional step: number

      The amount to move the cursor back

    Returns PathCursor

    This path cursor

  • Executes a function on change

    Parameters

    Returns PathCursor

    This path cursor

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme