Phaser API Documentation

  Version: 

Member of: Phaser.Math

<static> RandomXYZ(vec3, [radius])

Description:

Compute a random position vector in a spherical area, optionally defined by the given radius.

Parameters:

name type arguments Default description
vec3 Phaser.Math.Vector3

The Vector to compute random values for.

radius number <optional> 1

The radius.

Returns:
Description:

The given Vector.

Since: 3.0.0
Source: src/math/RandomXYZ.js (Line 7)