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

    Function LinearXY

    • Interpolates two given Vectors and returns a new Vector between them.

      Does not modify either of the passed Vectors.

      Parameters

      • vector1: Math.Vector2

        Starting vector

      • vector2: Math.Vector2

        Ending vector

      • Optionalt: number

        The percentage between vector1 and vector2 to return, represented as a number between 0 and 1. Default 0.

      Returns Math.Vector2