Find the distance between multiple gameobjects in unity?

Viewed 65

I am working on cricket like game. Consider a circular field with batsman on the center of the circle and other players are randomly distributed. How can I get direction with maximum gap from batsman to the boundary where there are no fielders, randomly populate fielders without overlapping each other and find the direction vector from batsman to the boundary? refer below image foe reference.Image for reference with player in center and fielders in field

0 Answers
Related