From 880f92611aac5dfd95939d5b7389c843c3c9f29b Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 29 Mar 2024 00:09:00 +0100 Subject: [PATCH] fix up/downward thrusters --- src/camera.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/camera.rs b/src/camera.rs index c9250e4..3cc4475 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -140,8 +140,9 @@ fn run_camera_controller( engine.thrust_back }); let right = *transform.right() * engine.thrust_sideways * engine.current_warmup; + let up = *transform.up() * engine.thrust_sideways * engine.current_warmup; actor.v += controller.velocity.x * dt * right - + controller.velocity.y * dt * Vec3::Y + + controller.velocity.y * dt * up + controller.velocity.z * dt * forward; controller.velocity = Vec3::ZERO;