Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector3

addScale(v, scale)

Description:

Add and scale 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.

scale number

The amount to scale v by.

Returns:
Description:

This Vector3.

Since: 3.50.0
Source: src/math/Vector3.js (Line 355)