PathUtilities.GetPointsAroundPoint() not returning points

Hi

Here is some sample code for how to use it

List<Transform> agents = ...;
List<Vector3> currentPositions = agents.Select(a => a.position).ToList();
Vector3 destination = ...;
var agentRadius = 0.5f;
var graph = AstarPath.active.data.graphs[0] as IRaycastableGraph;
PathUtilities.GetPointsAroundPointWorld(destination, graph, currentPositions, 0, agentRadius * 2);

for (int i = 0; i < agents.Count; i++) {
	// Set the destination of agents[i] to currentPositions[i]
}

Here’s a screenshot of me testing it. The agents were ordered to move over to the right side of the screen, their individual destinations are shown as blue circles. (ignore the red lines).

Where does it say that? I cannot find it.

1 Like