Class SliderPath

Constructors

Accessors

  • get calculatedDistance(): number
  • The distance of the path prior to lengthening/shortening to account for expected distance.

    Returns number

  • get expectedDistance(): number
  • The user-set distance of the path. If non-null, distance will match this value, and the path will be shortened/lengthened to match this length.

    Returns number

  • set expectedDistance(value): void
  • Parameters

    • value: number

    Returns void

Methods

  • Computes the slider path until a given progress that ranges } from 0 (beginning of the slider) to 1 (end of the slider) and stores the generated path in the given list.

    Parameters

    • path: Vector2[]

      The list to be filled with the computed path.

    • p0: number

      Start progress. Ranges } from 0 (beginning of the slider) to 1 (end of the slider).

    • p1: number

      End progress. Ranges } from 0 (beginning of the slider) to 1 (end of the slider).

    Returns void

  • Computes the position on the curve relative to how much of the hit object has been completed.

    Parameters

    • progress: number

      Where 0 is the start time of the hit object and 1 is the end time of the hit object.

    • spans: number

      Number of spans of the object.

    Returns Vector2

    The position on the curve.

  • Computes the position on the slider at a given progress that ranges from 0 (beginning of the path) to 1 (end of the path).

    Parameters

    • progress: number

      Ranges from 0 (beginning of the path) to 1 (end of the path).

    Returns Vector2

  • Computes the progress along the curve relative to how much of the hit object has been completed.

    Parameters

    • progress: number

      Where 0 is the start time of the hit object and 1 is the end time of the hit object.

    • spans: number

      Number of spans of the object.

    Returns number

    Progress of the object on the current span.