1063 {
1066 vector randomPos =
Vector(targetPos[0] + (
Math.
Cos(angle) * usedRadius), targetPos[1], targetPos[2] + (
Math.
Sin(angle) * usedRadius));
1067
1068 return randomPos;
1069 }
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static proto float Sin(float angle)
Returns sinus of angle in radians.
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].