Table of Contents

Method RandomOnSphere

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

RandomOnSphere(float)

Returns a random value on the surface of a sphere with a given radius.

Vector3 RandomOnSphere(float radius)

Parameters

radius float

The radius of the sphere.

Returns

Vector3

A random point on the surface of the sphere.