NavMeshAgent clumping in one spot around cube, not spreading around it.

So I have a (hopefully) simple problem that I want to fix because it’s really irritating.
Basically, my navmeshagents are all clumping in one spot around a cube, not spreading around it.

It looks really unnatural, and I was wondering if there was any way to spread the agents around the cube instead?

Been looking for an answer for a few days and haven’t found anything, so any help would be extremely appreciated, thanks .

Example: Dropbox

Hello!

There are likely many ways to do this, however my suggestion would be to apply different target positions for the little people you have running around. If their target is that building, provide each with a random position around the object using whatever geometry you would like. (Simple would use a circle) Since you have a square building you can get a random point on the outside of a Rect.

Hope this gives you an idea to how to get it working!

1 Like

Thank you so much for your both fast and helpful reply!

It took me a while to figure out how to implement what you said into the script, but I wouldn’t have been able to figure out how to do something like this on my own.

Thanks again!

No problem! Glad I could point you in the right direction. Pathfinding logic can be pretty tricky.