From d853fdc20d7abf82b33f12969b1fd3ebbb447afb Mon Sep 17 00:00:00 2001 From: qhdwight Date: Fri, 16 Jan 2026 21:05:29 -0800 Subject: [PATCH] Update to Bevy 0.18 and Avain 0.5 --- Cargo.toml | 6 +++--- examples/minimal_avian.rs | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ccb331e..f8d7caf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bevy_fps_controller" -version = "17.1.0" +version = "18.0.0" edition = "2021" authors = ["bevy_fps_controller"] repository = "https://github.com/qhdwight/bevy_fps_controller" @@ -10,9 +10,9 @@ readme = "README.md" description = "Bevy plugin that adds a Source engine inspired FPS movement controller" [dependencies] -bevy = "0.17" +bevy = "0.18" bevy_rapier3d = { version = "0.32", optional = true } -avian3d = { version = "0.4", optional = true } +avian3d = { version = "0.5", optional = true } [features] default = [] diff --git a/examples/minimal_avian.rs b/examples/minimal_avian.rs index 5c5e902..7340081 100644 --- a/examples/minimal_avian.rs +++ b/examples/minimal_avian.rs @@ -15,10 +15,9 @@ const SPAWN_POINT: Vec3 = Vec3::new(0.0, 1.625, 0.0); fn main() { App::new() - .insert_resource(AmbientLight { - color: Color::WHITE, + .insert_resource(GlobalAmbientLight { brightness: 10000.0, - affects_lightmapped_meshes: true, + ..default() }) .insert_resource(ClearColor(Color::linear_rgb(0.83, 0.96, 0.96))) .add_plugins(DefaultPlugins)