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

Update NavigationObstacle API #78081

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

smix8
Copy link
Contributor

@smix8 smix8 commented Jun 10, 2023

Updates NavigationObstacle API.

Fixes #78062.
(needs a small documentation update as well that I will do later.)

As mentioned in the linked issue there was some parts of the avoidance API that did not make the cut or some parts were simply forgotten in all the changes of the avoidance rework #69988.

This pr not only adds the missing functions for the obstacle_xyz API but also hides the fake_agent that the dynamic obstacles use internally from the user.

Everything regarding the fake_agent is now handled inside the server. The user only has to use obstacle functions to control obstacles, not work with a confusing mix of agent_xyz and obstacle_xyz functions.

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, though I'm not very familiar with the API so TIWAGOS ;)

This removes a compat breakage which had been previously documented as intentional, so you should remove it from this file:
image

diff --git a/misc/extension_api_validation/4.0-stable.expected b/misc/extension_api_validation/4.0-stable.expected
index 2bf64561d3..b96397adb5 100644
--- a/misc/extension_api_validation/4.0-stable.expected
+++ b/misc/extension_api_validation/4.0-stable.expected
@@ -85,11 +85,9 @@ Validate extension JSON: API was removed: classes/NavigationAgent3D/methods/set_
 Validate extension JSON: API was removed: classes/NavigationAgent3D/properties/agent_height_offset
 Validate extension JSON: API was removed: classes/NavigationAgent3D/properties/ignore_y
 Validate extension JSON: API was removed: classes/NavigationAgent3D/properties/time_horizon
-Validate extension JSON: API was removed: classes/NavigationObstacle2D/methods/get_rid
 Validate extension JSON: API was removed: classes/NavigationObstacle2D/methods/is_radius_estimated
 Validate extension JSON: API was removed: classes/NavigationObstacle2D/methods/set_estimate_radius
 Validate extension JSON: API was removed: classes/NavigationObstacle2D/properties/estimate_radius
-Validate extension JSON: API was removed: classes/NavigationObstacle3D/methods/get_rid
 Validate extension JSON: API was removed: classes/NavigationObstacle3D/methods/is_radius_estimated
 Validate extension JSON: API was removed: classes/NavigationObstacle3D/methods/set_estimate_radius
 Validate extension JSON: API was removed: classes/NavigationObstacle3D/properties/estimate_radius

Updates navigation obstacle API.
@smix8 smix8 requested a review from a team as a code owner June 12, 2023 12:27
@akien-mga akien-mga merged commit e208cdb into godotengine:master Jun 12, 2023
@akien-mga
Copy link
Member

Thanks!

@smix8 smix8 deleted the obstacle_api_update_4.x branch June 12, 2023 15:33
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.

Missing Obstacle Avoidance Method
2 participants