-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Pathfinding is going off the navmesh #80
Comments
Here's how I'm loading the NavMesh
And here's how I'm generating the NavMesh, by converting Unity's NavMesh to Recast.
|
Hello. Nice to meet you! If it's okay, could I please get the navmesh file? Oh, and if you have a screenshot of the reproduction steps for the issue, that would be really helpful. I can't quite figure out what the problem is from the screenshots you provided. |
Sure, thanks for helping with this! I'm trying to prevent the AI from walking into the water when following the player. The pathfinding will even follow the player into the air. The path returned is just two waypoints, the first being the AI's current location and the end result being the target location. So its as if its not even trying to find the path and just going directly to the result. |
@ikpil Thanks for the suggestions!
|
I have a navmesh that looks like this
My pathfinding is causing the agent to walk through the water, which is the empty area in the center of the screenshot.
Any ideas what I am doing wrong? Here's my code for finding the path. I probably screwed something up, it wasn't easy trying to figure out how to actually find a path using DotRecast. Had to use OpenAI and a lot of trial and error to try and figure it out lol.
The text was updated successfully, but these errors were encountered: