Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector2

setTo(x, [y])

Description:

This method is an alias for Vector2.set.

Parameters:

name type arguments Default description
x number

The x value to set for this Vector.

y number <optional> x

The y value to set for this Vector.

Returns:
Description:

This Vector2.

Since: 3.4.0
Source: src/math/Vector2.js (Line 137)