Phaser API Documentation

  Version: 
copy(src)

Description:

Copy the components of a given Vector into this Vector.

Parameters:

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

The Vector to copy the components from.

Returns:
Description:

This Vector3.

Inherited from: Phaser.Math.Vector3#copy
Since: 3.0.0
Source: src/math/Vector3.js (Line 211)