spawn the player a bit outside the vehicle

This commit is contained in:
yuni 2024-03-30 18:54:29 +01:00
parent 80aed73264
commit 3472be43b0

View file

@ -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