August 2018
Beginner
334 pages
10h 19m
English
We will create the function that computes the quality of the waypoint:
public static float GetCoverQuality(
Vector3 location,
int iterations,
Vector3 characterSize,
float radius,
float randomRadius,
float deltaAngle)
{
// next steps
}
float theta = 0f; int hits = 0; int valid = 0;
for (int i = 0; i < iterations; i++)
{
// next steps
}
return (float)(hits / valid);
Vector3 ...
Read now
Unlock full access