From 8ff60fdeb0dda7cb6eb7ed91c5084fc107f33365 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 8 Aug 2026 15:49:38 +0800 Subject: feat: add gravity and gravity-movement plugins Add CHGravityPlugin to manage the global gravity resource and CHGravityMovementGluePlugin to apply gravity to movement velocity each fixed update. Update workspace dependencies and include the new crates in the main app. --- Cargo.toml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 9d073ca..ce898e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,9 @@ edition.workspace = true [dependencies] bevy.workspace = true -ch-movement = { path = "plugins/movement" } +ch-movement.workspace = true +ch-gravity.workspace = true +ch-gravity-movement.workspace = true [workspace.dependencies] # Core @@ -16,6 +18,11 @@ proc-macro2 = "1.0.107" quote = "1.0.47" syn = "3.0.3" +# Plugins +ch-movement = { path = "plugins/movement" } +ch-gravity = { path = "plugins/gravity" } +ch-gravity-movement = { path = "plugins/glues/gravity_movement" } + # Utils ch-macros = { path = "utils/macros" } ch-macro-rules = { path = "utils/macro_rules" } @@ -25,7 +32,9 @@ version = "0.1.0" edition = "2024" [workspace] -members = [ - "plugins/movement", "utils/macro_rules", +members = ["plugins/glues/gravity_movement", + "plugins/gravity", + "plugins/movement", + "utils/macro_rules", "utils/macros" ] -- cgit