Error calling getCorners for a crowd agent's path

I am attempting to retrieve the upcoming points in a path for a crowd agent.

crowd.agentGoto(agents[i], navigationPlugin.getClosestPoint(startingPoint));
console.log("corners", crowd.getCorners(agents[i]))

In this PG https://playground.babylonjs.com/#TN7KNN#276 when pointer is down that’s when I do the console log, but I get error:

this.recastCrowd.getPath is not a function

Cc @cedric

Note that Cedric is on vacation and may not respond until he returns at the end of this month.

Thanks for the update.

1 Like

PR

1 Like

quick note: getCorners will return the remaining path when the agent moves. If it’s not moving (like just after a goto), the array will be empty.