-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add Rounded box gizmos #11948
Add Rounded box gizmos #11948
Conversation
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.
Never reviewed gizmo stuff before, but lgtm.
Co-authored-by: JMS55 <[email protected]>
Co-authored-by: JMS55 <[email protected]>
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.
Not a Gizmo export by any means, but ran the examples and overall looks good to me.
Could be nice to pull that default into a constant, but not blocking.
Co-Authored-By: James Gayfer <[email protected]>
Thank you to everyone involved with the authoring or reviewing of this PR! This work is relatively important and needs release notes! Head over to bevyengine/bevy-website#1315 if you'd like to help out. |
Objective
Solution
Gizmos::rounded_cuboid
,Gizmos::rounded_rect
andGizmos::rounded_rect_2d
..corner_radius(...)
or.edge_radius(...)
as well as the line segments of each arc using.arc_segments(...)
.Changelog
rounded_box
module tobevy_gizmos
containing all of the above methods and builders.2d_gizmos
and3d_gizmos
Additional information
The 3d example now looks like this:
And this is the updated 2d example showcasing negative corner radius: