From 80aed73264c1f9c2450aa8e7d1536f2408603024 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 30 Mar 2024 18:51:21 +0100 Subject: [PATCH] will this help with vehicle exiting? still seems random... --- src/actor.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/actor.rs b/src/actor.rs index 39eb845..e24dd7a 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -1,4 +1,5 @@ use bevy::prelude::*; +use bevy::transform::TransformSystem; use bevy_xpbd_3d::prelude::*; use crate::{nature, settings, actor, audio, hud}; @@ -19,7 +20,7 @@ impl Plugin for ActorPlugin { handle_conversations, handle_input, handle_chat_scripts, - handle_vehicle_enter_exit, + handle_vehicle_enter_exit.after(PhysicsSet::Sync).before(TransformSystem::TransformPropagate), handle_collisions, )); app.add_event::();