help for avoiding other seekers#25
Draft
mrsimonk wants to merge 1 commit into
Draft
Conversation
Owner
|
I think this happens because the Navigation Agents don't care about other agents. All they care about is the navigation region which is pre-baked. Not sure how efficient is this or if this is the best way to do things, but my first idea would be to re-bake the region depending on the other agents' position. My second idea would be checking NavigationObstacle2Ds, maybe those could be attached to your agents. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi - I'm getting a lot out of your tutorials, thanks very much - I have a problem I'm trying to solve though.
How do I avoid a CharacterBody2D that is blocking the navigation path?
I added an @export variable to the Seeker code that just enables or disables "Get Food" - then I duplicated the Seeker several times and made a "wall" of them that blocks the top half of the field area.
When I drop food behind that blocked off area, the Seekers still try to run through it - I want them to go the long way around to get it
How would I achieve that?
PS: Sorry for v4.5 upgrade - I'm new to this