phaser - v4.0.0-rc.4
    Preparing search index...

    A MoveTo Curve is a very simple curve consisting of only a single point. Its intended use is to move the ending point in a Path.

    Index

    Constructors

    Properties

    active: boolean

    Denotes that this Curve does not influence the bounds, points, and drawing of its parent Path. Must be false or some methods in the parent Path will throw errors.

    The lone point which this curve consists of.

    Methods

    • Get point at relative position in curve according to length.

      Type Parameters

      Parameters

      • t: number

        The position along the curve to return. Where 0 is the start and 1 is the end.

      • Optionalout: O

        A Vector2 object to store the result in. If not given will be created.

      Returns O

    • Retrieves the point at given position in the curve. This will always return this curve's only point.

      Type Parameters

      Parameters

      • u: number

        The position in the path to retrieve, between 0 and 1. Not used.

      • Optionalout: O

        An optional vector in which to store the point.

      Returns O