From 5ab4ee2fcf4b3fe3db50e7aa33e936314f4852d1 Mon Sep 17 00:00:00 2001 From: yuni Date: Mon, 16 Sep 2024 01:36:51 +0200 Subject: [PATCH] particles: disable when inside vehicles --- src/camera.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/camera.rs b/src/camera.rs index ff5b6bf..a43f3c4 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -568,7 +568,7 @@ pub fn apply_input_to_player( play_thruster_sound = true; // Visual effect - if acceleration_total.length_squared() > 1e-4 { + if bike.is_none() && acceleration_total.length_squared() > 1e-4 { let thruster_direction = acceleration_total.normalize(); let thruster_v = v.0 - 10.0 * thruster_direction; ew_effect.send(visual::SpawnEffectEvent {