Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector2

setFromObject(obj)

Description:

Set the component values of this Vector from a given Vector2Like object.

Parameters:

name type description
obj Phaser.Types.Math.Vector2Like

The object containing the component values to set for this Vector.

Returns:
Description:

This Vector2.

Since: 3.0.0
Source: src/math/Vector2.js (Line 98)