-
-
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
New circular primitives: Arc2d
, CircularSector
, CircularSegment
#13482
Conversation
This required adding a parameterizable angle for the UV mapping. It's in an enum to reduce the amount of churn if/when we add additional modes.
Change the default angle to a third of a circle, because a quarter leads to too thin of a segment. Also formatting changes in 2d_shapes.rs.
There were bugs.
Also draw bounding boxes on the mesh example to visually confirm correctness.
Every suggestion for the boolean condition is less readable.
Co-authored-by: Joona Aalto <jondolf.dev@gmail.com> Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
The generated |
Thanks for adopting this! |
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.
Excellent, thanks for tackling this :) I'm happy with the state of this now, and pleased to see this picked up.
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.
Gave this a good look before, and it looks like it works as expected! Thanks again!
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#1325 if you'd like to help out. |
Objective
Adopted #11748
Solution
I've rebased on main to fix the merge conflicts.
Not quite ready to merge yetThe new shapes inNever mind, looks like radians and degrees just got mixed up at some point?examples/2d/2d_shapes.rs
don't look right at all