When I create 200 obstacles, the agent can pass through the obstacle
playground:
When I create 200 obstacles, the agent can pass through the obstacle
playground:
pinging @Cedric
There is a limit on the number of obstables. It should not get more than 64. ( I need to update the documentation and add a warning).
Then, it’s dependent on your nav mesh parameters. I get better results with higher value of cs for example. There is no ‘one size fits all’ parameters. You will have to tweak them to improve results.
Also, having the agent already spawning in a collider is missing with its state and you can have poorly working path computation. Make sure no colliders are around the agent (or colliding with the agent) when starting.
Colliders are not meant to be used that way. You should merge your boxes with the ground then add a few dynamic colliders instead.