Skip to content

Commit 52cbcec

Browse files
authored
Migrate from Bevy 0.15 RC to full 0.15 (#570)
# Objective The full 0.15 release has a few breaking changes from the release candidate. ## Solution Fix them! Also changed `bevy_mod_debugdump` to use the main branch instead of the 0.15 PR's branch, since it has now been updated.
1 parent d5b9634 commit 52cbcec

File tree

10 files changed

+29
-25
lines changed

10 files changed

+29
-25
lines changed

crates/avian2d/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ bench = false
5959

6060
[dependencies]
6161
avian_derive = { path = "../avian_derive", version = "0.1" }
62-
bevy = { version = "0.15.0-rc", default-features = false }
63-
bevy_math = { version = "0.15.0-rc" }
62+
bevy = { version = "0.15", default-features = false }
63+
bevy_math = { version = "0.15" }
6464
libm = { version = "0.2", optional = true }
6565
parry2d = { version = "0.17", optional = true }
6666
parry2d-f64 = { version = "0.17", optional = true }
6767
nalgebra = { version = "0.33", features = ["convert-glam029"], optional = true }
6868
serde = { version = "1", features = ["derive"], optional = true }
69-
derive_more = "0.99"
69+
derive_more = "1"
7070
indexmap = "2.0.0"
7171
fxhash = "0.2.1"
7272
itertools = "0.13"
@@ -75,12 +75,12 @@ bitflags = "2.5.0"
7575
[dev-dependencies]
7676
examples_common_2d = { path = "../examples_common_2d" }
7777
benches_common_2d = { path = "../benches_common_2d" }
78-
bevy_math = { version = "0.15.0-rc", features = ["approx"] }
78+
bevy_math = { version = "0.15", features = ["approx"] }
7979
glam = { version = "0.29", features = ["bytemuck"] }
8080
approx = "0.5"
8181
bytemuck = "1.19"
8282
criterion = { version = "0.5", features = ["html_reports"] }
83-
bevy_mod_debugdump = { git = "https://github.com/andriyDev/bevy_mod_debugdump", branch = "bevy-0.15" }
83+
bevy_mod_debugdump = { git = "https://github.com/jakobhellermann/bevy_mod_debugdump" }
8484

8585
[[example]]
8686
name = "dynamic_character_2d"

crates/avian2d/examples/dynamic_character_2d/plugin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ fn gamepad_input(
150150
gamepads: Query<&Gamepad>,
151151
) {
152152
for gamepad in gamepads.iter() {
153-
if let Some(x) = gamepad.analog.get(GamepadAxis::LeftStickX) {
153+
if let Some(x) = gamepad.get(GamepadAxis::LeftStickX) {
154154
movement_event_writer.send(MovementAction::Move(x as Scalar));
155155
}
156156

157-
if gamepad.digital.just_pressed(GamepadButton::South) {
157+
if gamepad.just_pressed(GamepadButton::South) {
158158
movement_event_writer.send(MovementAction::Jump);
159159
}
160160
}

crates/avian2d/examples/kinematic_character_2d/plugin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ fn gamepad_input(
164164
gamepads: Query<&Gamepad>,
165165
) {
166166
for gamepad in gamepads.iter() {
167-
if let Some(x) = gamepad.analog.get(GamepadAxis::LeftStickX) {
167+
if let Some(x) = gamepad.get(GamepadAxis::LeftStickX) {
168168
movement_event_writer.send(MovementAction::Move(x as Scalar));
169169
}
170170

171-
if gamepad.digital.just_pressed(GamepadButton::South) {
171+
if gamepad.just_pressed(GamepadButton::South) {
172172
movement_event_writer.send(MovementAction::Jump);
173173
}
174174
}

crates/avian3d/Cargo.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,30 @@ bench = false
6161

6262
[dependencies]
6363
avian_derive = { path = "../avian_derive", version = "0.1" }
64-
bevy = { version = "0.15.0-rc", default-features = false }
65-
bevy_math = { version = "0.15.0-rc" }
64+
bevy = { version = "0.15", default-features = false }
65+
bevy_math = { version = "0.15" }
6666
libm = { version = "0.2", optional = true }
6767
parry3d = { version = "0.17", optional = true }
6868
parry3d-f64 = { version = "0.17", optional = true }
6969
nalgebra = { version = "0.33", features = ["convert-glam029"], optional = true }
7070
serde = { version = "1", features = ["derive"], optional = true }
71-
derive_more = "0.99"
71+
derive_more = "1"
7272
indexmap = "2.0.0"
7373
fxhash = "0.2.1"
7474
itertools = "0.13"
7575
bitflags = "2.5.0"
7676

7777
[dev-dependencies]
78-
bevy = { version = "0.15.0-rc", default-features = false, features = [
78+
bevy = { version = "0.15", default-features = false, features = [
7979
"bevy_gltf",
80+
"animation",
8081
] }
8182
examples_common_3d = { path = "../examples_common_3d" }
8283
benches_common_3d = { path = "../benches_common_3d" }
83-
bevy_math = { version = "0.15.0-rc", features = ["approx"] }
84+
bevy_math = { version = "0.15", features = ["approx"] }
8485
approx = "0.5"
8586
criterion = { version = "0.5", features = ["html_reports"] }
86-
bevy_mod_debugdump = { git = "https://github.com/andriyDev/bevy_mod_debugdump", branch = "bevy-0.15" }
87+
bevy_mod_debugdump = { git = "https://github.com/jakobhellermann/bevy_mod_debugdump" }
8788

8889
[[example]]
8990
name = "dynamic_character_3d"

crates/avian3d/examples/dynamic_character_3d/plugin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,15 @@ fn gamepad_input(
159159
) {
160160
for gamepad in gamepads.iter() {
161161
if let (Some(x), Some(y)) = (
162-
gamepad.analog.get(GamepadAxis::LeftStickX),
163-
gamepad.analog.get(GamepadAxis::LeftStickY),
162+
gamepad.get(GamepadAxis::LeftStickX),
163+
gamepad.get(GamepadAxis::LeftStickY),
164164
) {
165165
movement_event_writer.send(MovementAction::Move(
166166
Vector2::new(x as Scalar, y as Scalar).clamp_length_max(1.0),
167167
));
168168
}
169169

170-
if gamepad.digital.just_pressed(GamepadButton::South) {
170+
if gamepad.just_pressed(GamepadButton::South) {
171171
movement_event_writer.send(MovementAction::Jump);
172172
}
173173
}

crates/avian3d/examples/kinematic_character_3d/plugin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,15 @@ fn gamepad_input(
174174
) {
175175
for gamepad in gamepads.iter() {
176176
if let (Some(x), Some(y)) = (
177-
gamepad.analog.get(GamepadAxis::LeftStickX),
178-
gamepad.analog.get(GamepadAxis::LeftStickY),
177+
gamepad.get(GamepadAxis::LeftStickX),
178+
gamepad.get(GamepadAxis::LeftStickY),
179179
) {
180180
movement_event_writer.send(MovementAction::Move(
181181
Vector2::new(x as Scalar, y as Scalar).clamp_length_max(1.0),
182182
));
183183
}
184184

185-
if gamepad.digital.just_pressed(GamepadButton::South) {
185+
if gamepad.just_pressed(GamepadButton::South) {
186186
movement_event_writer.send(MovementAction::Jump);
187187
}
188188
}

crates/benches_common_2d/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
bevy = { version = "0.15.0-rc", default-features = false }
7+
bevy = { version = "0.15", default-features = false }
88
avian2d = { path = "../avian2d", default-features = false }
99
criterion = "0.5"

crates/benches_common_3d/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
bevy = { version = "0.15.0-rc", default-features = false }
7+
bevy = { version = "0.15", default-features = false }
88
avian3d = { path = "../avian3d", default-features = false }
99
criterion = "0.5"

crates/examples_common_2d/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
use-debug-plugin = []
88

99
[dependencies]
10-
bevy = { version = "0.15.0-rc", default-features = false, features = [
10+
bevy = { version = "0.15", default-features = false, features = [
1111
"bevy_core_pipeline",
1212
"bevy_state",
1313
"bevy_text",
@@ -22,6 +22,7 @@ bevy = { version = "0.15.0-rc", default-features = false, features = [
2222
"ktx2",
2323
"zstd",
2424
"bevy_winit",
25+
"bevy_window",
2526
"x11", # github actions runners don't have libxkbcommon installed, so can't use wayland
2627
] }
2728
avian2d = { path = "../avian2d", default-features = false }

crates/examples_common_3d/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
use-debug-plugin = []
88

99
[dependencies]
10-
bevy = { version = "0.15.0-rc", default-features = false, features = [
10+
bevy = { version = "0.15", default-features = false, features = [
1111
"bevy_core_pipeline",
1212
"bevy_state",
1313
"bevy_text",
@@ -18,12 +18,14 @@ bevy = { version = "0.15.0-rc", default-features = false, features = [
1818
"bevy_pbr",
1919
"bevy_gizmos",
2020
"bevy_gltf",
21+
"animation",
2122
"default_font",
2223
"tonemapping_luts",
2324
"ktx2",
2425
"png",
2526
"zstd",
2627
"bevy_winit",
28+
"bevy_window",
2729
"x11", # github actions runners don't have libxkbcommon installed, so can't use wayland
2830
] }
2931
avian3d = { path = "../avian3d", default-features = false }

0 commit comments

Comments
 (0)