Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Prevent Navmesh Agent collision "jittering" if I spawn a lot

$
0
0
So I have a script which clones multiple copies of my navmeshagent ("player").

However if I spawn too many at once they spawn at the same location so immediately collide and "jitter" from the spawn location.

What's the best way to spawn them in a manner which prevents this kind of collision.



My object instantiation code

Code (CSharp):
  1.                 for (int i = 0; i < numberWeHaveToInstantiate; i++)
  2.                 {
  3.  
  4.                     clone =...
Prevent Navmesh Agent collision "jittering" if I spawn a lot

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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