-
-
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
Rename Plane
struct to HalfSpace
#8744
Conversation
It looks like your PR is a breaking change, but you didn't provide a migration guide. Could you add some context on what users should update when this change get released in a new version of Bevy? |
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
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.
Looks so much better. Just a couple sentences I think should be reworded.
/// Constructs a `HalfSpace` from a 4D vector whose first 3 components | ||
/// represent the bisecting plane's unit normal, and the last component signifies | ||
/// the distance from the origin to the plane along the normal. | ||
/// The constructor ensures the normal vector is normalized and the distance is appropriately scaled. |
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.
Props to you, I like the phrasing 👍
@@ -131,15 +131,15 @@ impl Plane { | |||
#[reflect(Component)] | |||
pub struct Frustum { |
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.
I see the doc string for Frustrum
mention planes. Could you reword it as well?
Co-authored-by: Nicola Papale <nicopap@users.noreply.github.com>
@hate can you add a tiny migration guide to this PR? They're compiled automatically from the PR description, so it really does make a difference. |
Got it, let me know if I should add more to it/change it up |
Plane
struct to HalfSpace
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.
LGTM, @superdump what do you think of this change?
Co-authored-by: Nicola Papale <nicopap@users.noreply.github.com>
|
You're right! Corrected |
Objective
render::primitives::Plane
struct as to not confuse it withbevy_render::mesh::shape::Plane
render::primitive::Plane
is confusing #8730Solution
render::primitives::Plane
struct torender::primitives::HalfSpace
Changelog
render::primitives::Plane
torender::primitives::HalfSpace
to more accurately represent it's useplanes
member inrender::primitives::Frustum
tohalf_spaces
to reflect changesMigration Guide
render::primitives::Plane
torender::primitives::HalfSpace
planes
member inrender::primitives::Frustum
tohalf_spaces