Quantcast
Channel: Latest Questions by Turkeybag
Viewing all articles
Browse latest Browse all 27

Navmeshagents stopping for no reason.

$
0
0
Hey! So I was testing some things with navmeshs and when I had 52 agents at once all calling Agent.SetDestination(PlayerTransform.position) in the update functon, the agents would all stop for a short time and then start up again, happening once every now and then. Obviously it's a bad idea to do that many calls but I was wondering if there is a way to fix this as it has happened with other, smaller amounts of agents making the calls a lot less often (the stopping just happens less often and doesn't last as long). I've had another project in the past that had 500 agents moving at once with SetDestination() in Update() and it didn't have any problems. I was wondering what the reasoning is. The navmesh I'm using atm is more complex than the one that had 500 agents but not by quite a bit but it's still really simple. ![alt text][1] [1]: /storage/temp/33652-navmesh.png I was mainly wondering if this is a bug, if there is a way to fix it, or does navmesh just have it's limits even if I have a lot more power on my PC to run more agents and what are those limits so I can plan ahead. Any help is appreciated.

Viewing all articles
Browse latest Browse all 27

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>