Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector3

addScalar(s)

Description:

Add the given value to each component of this Vector.

Parameters:

name type description
s number

The amount to add to this Vector.

Returns:
Description:

This Vector3.

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