fix engine thruster direction

This commit is contained in:
yuni 2024-03-30 18:58:45 +01:00
parent 15781d2175
commit d073eb067c

View file

@ -183,7 +183,7 @@ fn apply_input_to_player(
axis_input = axis_input.clamp(Vec3::splat(-1.0), Vec3::splat(1.0)); axis_input = axis_input.clamp(Vec3::splat(-1.0), Vec3::splat(1.0));
// Apply movement update // 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 engine.thrust_forward
} else { } else {
engine.thrust_back engine.thrust_back