From 0f33b6e88e28cbd4b57a2a2a5e1283c57da390cd Mon Sep 17 00:00:00 2001 From: yuni Date: Sun, 17 Nov 2024 02:26:15 +0100 Subject: [PATCH] fix engine vector --- src/actor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actor.rs b/src/actor.rs index fc67e2c..0656cfd 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -883,7 +883,7 @@ fn handle_wants_acceleration( }; let factor_right = engine.thrust_sideways; let factor_up = engine.thrust_sideways; - let engine_factor = Vec3::new(factor_forward, factor_up, factor_right).as_dvec3() + let engine_factor = Vec3::new(factor_right, factor_up, factor_forward).as_dvec3() * engine.current_warmup as f64 * ENGINE_SPEED_FACTOR as f64 * engine.current_boost_factor;