So what I am trying to do is to find a random point on the (green") arc around the enemy:
Sorry for the bad drawing but
- Red (no go)
- Green ( Points the allied can go to)
I know that unity has the following function:
Radius = 5; _randomDirection = (Random.insideUnitCircle * _target.position).normalized; Vector3 finalPosition = _target + _randomDirection + Radius;
However, this is for a full circle. How can I achieve the closest half circle?