-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Implement CollisionPolygon3D margin #45855
Conversation
Please let me know if there are any issues with formatting or documentation. |
5ef4139
to
5867524
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For info, the current plan is for collision margins to be removed in the future as Godot Physics 3D will become the default and Bullet Physics will be used as a separate plugin.
It's still fine to improve the API and documentation in the meantime, and it would make sense to backport this change to 3.2 as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Looks good to me.
Technically we don't need to rebuild the polygon when the margin is changed, but it would be more involved to improve that, and changing margins at runtime is very unlikely so it's fine to keep it simple.
Thanks! |
Cherry-picked for 3.2.4. |
Closes #45718.