aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-08 15:49:38 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-08 15:49:38 +0800
commit8ff60fdeb0dda7cb6eb7ed91c5084fc107f33365 (patch)
tree8b72bc3e2aa684b28e5623ac91653ee713fd638e /src
parentebd8f440ae5a2d131cd4e6c064b2d97209cf0858 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 4906590..df08db9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,5 +9,7 @@ fn main() {
let mut app = App::new();
app.add_plugins(DefaultPlugins);
app.add_plugins(ch_movement::CHMovementPlugin);
+ app.add_plugins(ch_gravity::CHGravityPlugin);
+ app.add_plugins(ch_gravity_movement::CHGravityMovementGluePlugin);
app.run();
}