From a0577f4e7eaec98e4642f7412c91d551c38e6f07 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 30 Mar 2024 19:49:47 +0100 Subject: [PATCH] fix mouse movement when player has high angular velocity --- src/camera.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/camera.rs b/src/camera.rs index e002ee4..7ab5e26 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -19,7 +19,9 @@ impl Plugin for CameraControllerPlugin { .after(PhysicsSet::Sync) .before(TransformSystem::TransformPropagate)); app.add_systems(Update, update_fov); - app.add_systems(Update, apply_input_to_player); + app.add_systems(PostUpdate, apply_input_to_player + .after(PhysicsSet::Sync) + .before(TransformSystem::TransformPropagate)); } }