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 gaps in CSGPolygon3D spin mode at 360 degrees #100826

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

Lielay9
Copy link
Contributor

@Lielay9 Lielay9 commented Dec 26, 2024

Fixes: #100817
Same problem #100020, similar cause, the same ugly solution. When the polygon is spun full circle, there might remain a small gap between the first polygon slice and the last (unless you win the floating point lottery). Hence, set the last iteration to use the same rotation (transform) as the first.

@Lielay9 Lielay9 requested a review from a team as a code owner December 26, 2024 12:07
@Chaosus Chaosus added this to the 4.4 milestone Dec 26, 2024
@Repiteo Repiteo merged commit 77eb92f into godotengine:master Dec 30, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 30, 2024

Thanks!

@Lielay9 Lielay9 deleted the csg-spin-360 branch December 30, 2024 20:19
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.

CSGPolygon3D - Certain numbers of Spin Sides always result in empty shape
4 participants