From 3472be43b029d1199270aba9d2a442b692183b6a Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 30 Mar 2024 18:54:29 +0100 Subject: [PATCH] spawn the player a bit outside the vehicle --- src/actor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actor.rs b/src/actor.rs index e24dd7a..4087c98 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -320,7 +320,7 @@ pub fn handle_vehicle_enter_exit( // Exiting Vehicle *driver_linv = vehicle_linv.clone(); *driver_angv = vehicle_angv.clone(); - driver_trans.translation = vehicle_trans.translation; + driver_trans.translation = vehicle_trans.translation + Vec3::new(0.0, 0.0, 10.0); driver_trans.rotation = vehicle_trans.rotation; // NOTE: I would rather have the following line here, // but then, for some reason, changing driver translation