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 debug being affected by rotation and scale #82593

Merged
merged 1 commit into from
Oct 21, 2023

Conversation

smix8
Copy link
Contributor

@smix8 smix8 commented Sep 30, 2023

Fixes NavigationObstacle3D debug being affected by rotation and scale.

An avoidance obstacle has no full transform, it only has a position. The late change from Node to Node3D brought with it that all the Node3D properties are inherited so now the debug visuals can end up rotated or at the wrong size due to scale changes.

No property of obstacles or agents, e.g. radius, is affected by node transform except the position. While xforming radius and vertices now is debatable it would break compatiblity so fixing the debug is the better option for now.

Fixes NavigationObstacle3D debug being affected by rotation and scale.
@smix8 smix8 added this to the 4.2 milestone Sep 30, 2023
@smix8 smix8 requested a review from a team as a code owner September 30, 2023 20:54
@smix8 smix8 modified the milestones: 4.2, 4.x Oct 21, 2023
@akien-mga akien-mga modified the milestones: 4.x, 4.2 Oct 21, 2023
@akien-mga akien-mga merged commit 918da63 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