Skip to content

help for avoiding other seekers#25

Draft
mrsimonk wants to merge 1 commit into
cashew-olddew:mainfrom
mrsimonk:help-for-avoiding-blocking-seekers
Draft

help for avoiding other seekers#25
mrsimonk wants to merge 1 commit into
cashew-olddew:mainfrom
mrsimonk:help-for-avoiding-blocking-seekers

Conversation

@mrsimonk

@mrsimonk mrsimonk commented Jan 6, 2026

Copy link
Copy Markdown

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?

godot-blocked-seekers

PS: Sorry for v4.5 upgrade - I'm new to this

@mrsimonk mrsimonk marked this pull request as draft January 6, 2026 04:47
@cashew-olddew

cashew-olddew commented Jan 30, 2026

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants