Метод | Описание | |
---|---|---|
GetRandomFloat ( |
||
GetRandomFloat ( |
||
GetRandomPointInCube ( |
Generates a random Vector3 positionned inside a cube.
|
|
GetRandomPointInSphere ( |
Generates a random Vector3 positionned inside a sphere.
|
|
GetRandomPointOnSphere ( |
Generates a random Vector3 on the surface of a sphere.
|
Метод | Описание | |
---|---|---|
GetRandomPolarCoordinates ( |
Generates a random Vector3 point in a Polar Coordinate System.
|
public static GetRandomFloat ( |
||
dice | ||
Результат | float |
public static GetRandomFloat ( |
||
dice | ||
min | float | |
max | float | |
Результат | float |
static public GetRandomPointInCube ( |
||
dice | The Random instance to be used when generating data. | |
maxDistanceFromCenter | int | The maximum distance from center the point can be generated |
Результат | Vector3 |
static public GetRandomPointInSphere ( |
||
dice | The Random instance to be used when generating data. | |
maxDistanceFromOrigin | int | The maximum distance from origin the point can be generated. Usually, the radius of a sphere. |
Результат | Vector3 |
static public GetRandomPointOnSphere ( |
||
dice | The Random instance to be used when generating data. | |
radius | float | The radius of the Sphere. |
Результат | Vector3 |