-
-
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
Update glam to 0.12.0 #1249
Update glam to 0.12.0 #1249
Conversation
would it make sense to have bevy_reflect re-export glam, and bevy_math use it from there instead of both declaring it as a dependency? |
I don't know, glam appears to be optional in bevy_reflect, but perhaps it is intended to be built standalone and would always have glam enabled if built as part of bevy. |
It did catch me out that two places required to be updated, so perhaps it would be a good thing to do. |
oh right, I missed that glam is optional in bevy_reflect for standalone. still as bevy_math always enable the feature, it should work to re-export it |
Awesome! I'm looking forward to int-ifying a number of apis. And yeah |
as |
Thats a valid point. But it still seems a bit odd from a "self documenting" standpoint. I'm not sure the loss of clarity is worth the removal of duplicate instances. From a cargo/rustc perspective it shouldn't matter right? Alternatively glam could add optional bevy_reflect impls :) |
Although then we'd need to make sure the versions stay in sync, which is harder to do across projects. |
none at all, it's just error prone when updating, but an error that will be caught very fast by CI, although with not the best rust error message in my opinion |
I think for now I'm inclined to merge this as-is. Feel free to open up an issue for merging deps if you want 😄 |
(but im still not personally sold in the idea) |
Added
f64
primitive type supportDVec2
,DVec3
andDVec4
DMat2
,DMat3
andDMat4
DQuat
i32
primitive type supportIVec2
,IVec3
andIVec4
u32
primitive type supportUVec2
,UVec3
andUVec4
bool
primitive type supportBVec2
,BVec3
andBVec4
Changed
Vec2Mask
,Vec3Mask
andVec4Mask
have been replaced byBVec2
,BVec3
,BVec3A
,BVec4
andBVec4A
. These types are used by some vector methodsand are not typically referenced directly. This is a breaking change.
Removed
build.rs
has been removed.