bevy
bevy copied to clipboard
2d shapes demo Annulus not found
Bevy version
0.13.1 0.13.2
Relevant system information
2024-05-10T21:00:50.169484Z INFO bevy_render::renderer: AdapterInfo { name: "Apple M3 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
2024-05-10T21:00:50.323233Z INFO bevy_winit::system: Creating new window "App" (0v1)
2024-05-10T21:00:50.347980Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "MacOS 14.1 ", kernel: "23.1.0", cpu: "Apple M3 Pro", core_count: "12", memory: "36.0 GiB" }
cargo 1.78.0 (54d8815d0 2024-03-26)
What you did
I copied the examples from 2d shapes, added bevy as a dependency, and then tried to run cargo build and cargo run
The following occurred
error[E0433]: failed to resolve: use of undeclared type `Annulus`
--> src/main.rs:32:33
|
32 | Mesh2dHandle(meshes.add(Annulus::new(25.0, 50.0))),
| ^^^^^^^ use of undeclared type `Annulus`
What went wrong
To "fix" the issue, to get the example to build I had to remove the Annulus from the example code. I could not find a working version or feature that included the shape. am I missing something?
Additional information
[package]
name = "candlehopper"
version = "0.1.0"
edition = "2021"
# Enable a small amount of optimization in debug mode
[profile.dev]
opt-level = 1
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"]
opt-level = 3
[workspace]
resolver = "2" # Important! wgpu/Bevy needs this!
[dependencies]
bevy = "0.13.1"
bevy_pancam = "0.11.0"
kd-tree = "0.5.3"
rand = "0.8.5"
typenum = "1.17.0"