-
Notifications
You must be signed in to change notification settings - Fork 129
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
Possibility to find a walkable path to approximately desired direction #45
Comments
Do you know the dangerous area ahead of time? If so you can define your own I haven't heard of anyone using that feature, so it may have a very bad API. I'll look into cleaning it up (or exposing it if some of it is currently private) |
No, I don't know it ahead of time. It could be a hostile player or AoE. |
Then what you're looking for is local steering, specifically an avoidance force. The crowd management code ( This is also pretty much the highest level (in terms of AI) that SharpNav will cover. Anything higher level should be handled by other libraries or yourself. State Machines, Decision Trees, Behavior Trees, etc. are a massive project on their own. |
@Robmaister of course, I understand the difference. This is not a universal AI library. The local steering implementation should properly deal with obstacles but the current NavMeshQuery API is not well suitable for steering so this task is exactly for navmesh library. |
👍 NavMeshQuery is for path planning, which to me shouldn't include any steering. It should be layered on top of path planning. I might also rename the |
@Robmaister it doesn't matter what the name is if it does what we need )) I will look into it but can you also give any examples on using Crowds to make avoidance force? |
I don't have any examples as of yet, it should be fairly similar to Recast's at the moment though: |
Consider a situation: a bot wants to move away (or step back) from a dangerous place. He knows that he should go somewhere back but no exact point is specified. The task is not about reaching a target but about finding a walkable path to approximately desired direction. We can't just search for random points behind the bot because path to those points actually can lead through the point that the bot wants to avoid. Can you implement something that will help in such scenarios?
I think it's related to #15 but still not duplicate because there could be a better way than just checking many many directions with Raycast method.
The text was updated successfully, but these errors were encountered: