From a9fc27ac2749a09bd95184ba9f24c09ab854bbb8 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 1 May 2024 00:58:58 +0200 Subject: [PATCH] better g-force calculation --- src/actor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/actor.rs b/src/actor.rs index 2f005fe..95bc73d 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -37,8 +37,10 @@ impl Plugin for ActorPlugin { update_physics_lifeforms, handle_wants_maxrotation, handle_wants_maxvelocity, - handle_gforce, )); + app.add_systems(PostUpdate, handle_gforce + .after(PhysicsSet::Sync) + .after(sync::position_to_transform)); app.add_systems(Update, ( handle_input, handle_collisions,