From d073eb067c637e5d75012619cddd4a49ef26babb Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 30 Mar 2024 18:58:45 +0100 Subject: [PATCH] fix engine thruster direction --- src/camera.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/camera.rs b/src/camera.rs index 8f6963b..561b3ff 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -183,7 +183,7 @@ fn apply_input_to_player( axis_input = axis_input.clamp(Vec3::splat(-1.0), Vec3::splat(1.0)); // Apply movement update - let forward_factor = engine.current_warmup * (if axis_input.z < 0.0 { + let forward_factor = engine.current_warmup * (if axis_input.z > 0.0 { engine.thrust_forward } else { engine.thrust_back