Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector4

set(x, y, z, w)

Description:

Set the x, y, z and w components of the this Vector to the given x, y, z and w values.

Parameters:

name type description
x number | object

The x value to set for this Vector, or an object containing x, y, z and w components.

y number

The y value to set for this Vector.

z number

The z value to set for this Vector.

w number

The z value to set for this Vector.

Returns:
Description:

This Vector4.

Since: 3.0.0
Source: src/math/Vector4.js (Line 140)