Compute a random position vector in a spherical area, optionally defined by the given radius.
name | type | arguments | Default | description |
---|---|---|---|---|
vec3 | Phaser.Math.Vector3 |
The Vector to compute random values for. |
||
radius | number | <optional> | 1 |
The radius. |
The given Vector.