arcade-physics
Version:
Use Arcade Physics without Phaser.
19 lines • 685 B
TypeScript
export default RandomXYZ;
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Compute a random position vector in a spherical area, optionally defined by the given radius.
*
* @function Phaser.Math.RandomXYZ
* @since 3.0.0
*
* @param {Phaser.Math.Vector3} vec3 - The Vector to compute random values for.
* @param {number} [radius=1] - The radius.
*
* @return {Phaser.Math.Vector3} The given Vector.
*/
declare function RandomXYZ(vec3: Phaser.Math.Vector3, radius?: number | undefined): Phaser.Math.Vector3;
//# sourceMappingURL=RandomXYZ.d.ts.map