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 NavigationObstacle3D height #83701

Merged
merged 1 commit into from
Oct 21, 2023

Conversation

smix8
Copy link
Contributor

@smix8 smix8 commented Oct 20, 2023

Fixes NavigationObstacle3D height.

Part of #83625.

Affected all projects that used the default height because the height setter does not send the update when the value has not changed from the default.

The NavigationObstacle3D is one of those special cases where the server object default does not match the node default. The server object is shared with 2D and 2D requires a height of zero while 3D requires a height of 1.0 so it needs that update to go through to work. With the setter not sending the update and at a height of zero the obstacle that used the default height was only working while agents were on the same y-axis as the obstacle.

Fixes NavigationObstacle3D height.
@smix8 smix8 added this to the 4.2 milestone Oct 20, 2023
@smix8 smix8 requested a review from a team as a code owner October 20, 2023 22:19
@akien-mga akien-mga merged commit 0dc915b into godotengine:master Oct 21, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

2 participants