fix engine vector

This commit is contained in:
yuni 2024-11-17 02:26:15 +01:00
parent 04825f467d
commit 0f33b6e88e

View file

@ -883,7 +883,7 @@ fn handle_wants_acceleration(
}; };
let factor_right = engine.thrust_sideways; let factor_right = engine.thrust_sideways;
let factor_up = 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.current_warmup as f64
* ENGINE_SPEED_FACTOR as f64 * ENGINE_SPEED_FACTOR as f64
* engine.current_boost_factor; * engine.current_boost_factor;