-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[video] pathing issues - taking dead-end routes #24
Comments
Hi, The problem appears when the agent takes a shortcut over the bridge ? You could try to run your level in RecastDetour |
Sorry I haven't much experience about compiling on Windows, but it seems you nee to install Premake https://premake.github.io and Visual Studio https://visualstudio.microsoft.com/fr/vs/express/ |
Vincent, I posted another video update -- please take a look and let me know if any new ideas come to mind. It seems the more frequently I call crowdRequestMoveTarget, the worse the behavior gets. I can say with a good amount of certainty, that my mesh is just fine (I illustrate path sampling in the video). |
One thing you could try is to change the size of the function buffer here Change the 10 (which should be a constant obviously ...) to something much higher like 100 or 1000. Honestly 10 seems ridiculously low anyway 🤷 If this does not help, maybe check your |
I assume you're talking about line 618. Do I need to do anything to recompile after making the edit? If so, what is that process? |
No need to compile if you modify the lib directly, otherwise yeah there is compile script in the package.json |
I edited line 618 to 100, then 500 - it made no change in behavior. Because I can arbitrarily request a path from on top of the bridge into the water and get a perfect path every time, I'm starting to believe the problem arises when there are multiple entities taking the same route. I've messed with various agent parameters that would affect stacking, like agent radius and I've also tried a range of "agentSeparationWeight", but still no luck on getting entities to take the most appropriate and direct route. I'm wondering if there is a way to disable "awareness" of neighboring entities so they won't try to avoid each other on their routes. |
Hum, about your last point, I think it is controlled by the |
Having problems getting agents to arrive properly when taking longer routes. Please see the youtube video.
Any advice would be appreciated.
https://www.youtube.com/watch?v=gI_jTiXM5K8
The text was updated successfully, but these errors were encountered: