error[E0308]: mismatched types
diybl opened this issue · 1 comments
diybl commented
error[E0308]: mismatched types
--> src\mesh_material\mod.rs:242:18
|
242 | min: self.position - self.radius,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct glam::f32::vec3::Vec3
, found struct bevy::prelude::Vec3
|
= note: struct bevy::prelude::Vec3
and struct glam::f32::vec3::Vec3
have similar names, but are actually distinct types
note: struct bevy::prelude::Vec3
is defined in crate glam
the-ssd commented
I got it
cargo was compiling bvh 0.7.2 but should compile 0.7.1
change:
bvh = "0.7.1"
to:
bvh = "= 0.7.1"