From 313e73c18e09e8a2f14cd0536f611bf16f8aed49 Mon Sep 17 00:00:00 2001 From: GitGhillie Date: Mon, 12 Feb 2024 15:14:32 +0100 Subject: [PATCH 1/8] 0.13 update WIP --- Cargo.toml | 6 ++++-- examples/spatial.rs | 18 +++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 86fe923..f387600 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,13 +9,15 @@ license = "MIT OR Apache-2.0" [dependencies] anyhow = "1.0" -bevy = { version = "0.12", default-features = false, features = ["bevy_audio"] } +#bevy = { version = "0.12", default-features = false, features = ["bevy_audio"] } +bevy = { git="https://github.com/bevyengine/bevy.git", branch = "main", default-features = false, features = ["bevy_audio"] } bevy_mod_sysfail = "3.0" libfmod = "~2.206.2" [dev-dependencies] # The examples need the default features of bevy -bevy = { version = "0.12", default-features = true } +#bevy = { version = "0.12", default-features = true } +bevy = { git="https://github.com/bevyengine/bevy.git", branch = "main", default-features = true } [features] default = [] diff --git a/examples/spatial.rs b/examples/spatial.rs index c4bc840..611e4b3 100644 --- a/examples/spatial.rs +++ b/examples/spatial.rs @@ -37,8 +37,8 @@ fn setup_scene( ) { // Plane commands.spawn(PbrBundle { - mesh: meshes.add(shape::Plane::from_size(5.0).into()), - material: materials.add(Color::rgb(0.3, 0.5, 0.3).into()), + mesh: meshes.add(Plane3d::default().mesh().size(5.0, 5.0)), + material: materials.add(Color::rgb(0.3, 0.5, 0.3)), transform: Transform::from_xyz(0.0, -1.0, 0.0), ..default() }); @@ -68,8 +68,8 @@ fn setup_scene( commands .spawn(SpatialAudioBundle::new(event_description)) .insert(PbrBundle { - mesh: meshes.add(Mesh::from(shape::Cube { size: 1.0 })), - material: materials.add(Color::rgb(0.8, 0.7, 0.6).into()), + mesh: meshes.add(Cuboid::default()), + material: materials.add(Color::rgb(0.8, 0.7, 0.6)), transform: Transform::from_scale(Vec3::splat(0.2)), ..default() }); @@ -90,7 +90,7 @@ fn orbit_audio_source( } fn update_listener( - keyboard: Res>, + keyboard: Res>, time: Res