Does anyone have any good ideas of what to do when 2 NPC’s meet each other while navigating to waypoints?
Currently mine are getting stuck
Perhaps one could step to the left
I’m not sure how I could detect stuck NPC’s within a navigate to
I thought I’d ask
Perhaps I could put a wedge shaped collider on the front of my NPC’s and let them brush past each other
Hmm. If the units are moving with Unity’s pathfinding system, maybe using the included “Flee” action (so that they flee/avoid from one another) would work well here, but maybe not depending on what you are after.
Even though the action is named “Flee”, what it basically does, is that it tries to keep the object a specific distance away from another target object, so it could be used for avoidance to some degree.
Let me know.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.