particles: disable when inside vehicles

This commit is contained in:
yuni 2024-09-16 01:36:51 +02:00
parent 7e7b8e7432
commit 5ab4ee2fcf

View file

@ -568,7 +568,7 @@ pub fn apply_input_to_player(
play_thruster_sound = true; play_thruster_sound = true;
// Visual effect // 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_direction = acceleration_total.normalize();
let thruster_v = v.0 - 10.0 * thruster_direction; let thruster_v = v.0 - 10.0 * thruster_direction;
ew_effect.send(visual::SpawnEffectEvent { ew_effect.send(visual::SpawnEffectEvent {