Skip to content
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

fix: use from_xyzw #89

Merged
merged 1 commit into from
Oct 12, 2023
Merged

fix: use from_xyzw #89

merged 1 commit into from
Oct 12, 2023

Conversation

katopz
Copy link
Contributor

@katopz katopz commented Oct 12, 2023

Fix an error

   Compiling bevy_garage_car v0.1.0 (/Users/katopz/git/katopz/bevy_garage/car)
error[E0560]: struct `bevy::prelude::Quat` has no field named `x`
  --> car/src/esp.rs:21:5
   |
21 |     x: -0.0,
   |     ^ field does not exist
   |
  ::: /Users/katopz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/glam-0.24.1/src/f32/sse2/quat.rs:46:12
   |
46 | pub struct Quat(pub(crate) __m128);
   |            ---- `bevy::prelude::Quat` defined here
   |
help: `bevy::prelude::Quat` is a tuple struct, use the appropriate syntax
   |
20 | const WHEEL_RAY_END_QUAT: Quat = bevy::prelude::Quat(/* fields */);

@alexichepura alexichepura merged commit 8b3318e into alexichepura:main Oct 12, 2023
@alexichepura
Copy link
Owner

Thank you!
I didn't notice that with sse2 it's a different struct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants