Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector3

add(v)

Description:

Add a given Vector to this Vector. Addition is component-wise.

Parameters:

name type description
v Phaser.Math.Vector2 | Phaser.Math.Vector3

The Vector to add to this Vector.

Returns:
Description:

This Vector3.

Since: 3.0.0
Source: src/math/Vector3.js (Line 317)