Avian 0.6 error compilation?
Hello,
I'm trying to upgrade my project [Asteroids 3D](https://codeberg.jaumesingla.es/dracks/Asteroids_3D) to the 0.6, and I've found an error compilation in this project when changing the version. The error is the following:
```
error[E0599]: no method named `log2` found for struct `glam::Vec3A` in the current scope
--> /home/dracks/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/obvhs-0.3.0/src/cwbvh/bvh2_to_cwbvh.rs:86:14
|
85 | let e = ((aabb.max - aabb.min).max(Vec3A::splat(1e-20)) * DENOM)
| _________________-
86 | | .log2()
| | -^^^^ method not found in `glam::Vec3A`
| |_____________|
|
|
help: some of the expressions' fields have a method of the same name
|
86 | .x.log2()
| ++
86 | .y.log2()
| ++
86 | .z.log2()
| ++
For more information about this error, try `rustc --explain E0599`.
error: could not compile `obvhs` (lib) due to 1 previous error
```
This is my cargo:
```toml
[package]
name = "asteroids_3d"
version = "0.1.0"
edition = "2024"
[dependencies]
avian3d = { version = "0.6.0" }
bevy = { version = "0.18.1", default-features = false, features = ["dynamic_linking", "bevy_dev_tools"] }
bevy-inspector-egui = { version = "0.36.0", optional = true }
bevy_flair = "0.7.0"
rand = "0.10.0"
ui_helpers = { git = "https://github.com/Dracks/bevy-helpers.git", rev="b59f5d9b6a4d9c3394494dde5ce729565600b3cb" }
assets_helper = { git = "https://github.com/Dracks/bevy-helpers.git", rev="b59f5d9b6a4d9c3394494dde5ce729565600b3cb" }
[build-dependencies]
assets_generator = { git = "https://github.com/Dracks/bevy-helpers.git", rev="b59f5d9b6a4d9c3394494dde5ce729565600b3cb" }
# bevy_tools = { path = "../bevy_tools" }
# bevy_reflect = {version="0.17.2", features = ["documentation"]}
[features]
default = []
bevy-inspector-egui = ["dep:bevy-inspector-egui"]
debug = ["bevy-inspector-egui", "bevy/track_location"]
debug-collision = ["bevy/track_location", "avian3d/debug-plugin"]
short-cut = ["bevy/track_location", "default"]
webgpu = ["bevy/webgpu"]
# Enable a small amount of optimization in the dev profile.
[profile.dev]
opt-level = 1
# Enable a large amount of optimization in the dev profile for dependencies.
[profile.dev.package."*"]
opt-level = 3
# WASM
# Dependencies for WASM only
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version="0.4.2"
features=["wasm_js"]
```
What I'm doing wrong?
Thanks!
0 条评论