Skip to content
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

Fix NavigationObstacles not being added to avoidance simulation #75756

Merged
merged 1 commit into from
Apr 7, 2023

Conversation

smix8
Copy link
Contributor

@smix8 smix8 commented Apr 6, 2023

Fixes NavigationObstacles not being added to avoidance simulation.

This fixes a regression from #74893 that fixed the bug that all agents would be added to the avoidance regardless.

The obstacles actually only worked while this bug was present as they never registered themself with the avoidance. Now that only "active" agents are added to the avoidance simulation the obstacles are ignored.

This fix with a dummy function for the callback is temporary as it is the least invasive fix for Godot 4.0.2. It will be removed with the avoidance rework again cause the rework does the entire avoidance enabling differently. Copying the same fix from the rework to 4.0.2 rightnow would require so many changes that it is not worth it.

Fixes NavigationObstacles not being added to avoidance simulation.
@smix8 smix8 requested review from a team as code owners April 6, 2023 14:48
@Chaosus Chaosus added this to the 4.1 milestone Apr 6, 2023
@YuriSizov YuriSizov merged commit f38b540 into godotengine:master Apr 7, 2023
@YuriSizov
Copy link
Contributor

Thanks!

@smix8 smix8 deleted the fix_obstacle_avoidance_sim_4.x branch April 7, 2023 13:19
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.0.3.

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

Successfully merging this pull request may close these issues.

3 participants