fix vehicle exit... maybe? seems to have a random element...

This commit is contained in:
yuni 2024-04-03 14:42:48 +02:00
parent b4b24a192a
commit 39e852817a

View file

@ -1,5 +1,4 @@
use bevy::prelude::*;
use bevy::transform::TransformSystem;
use bevy_xpbd_3d::prelude::*;
use crate::{nature, settings, actor, audio, hud};
@ -20,9 +19,11 @@ impl Plugin for ActorPlugin {
handle_conversations,
handle_input,
handle_chat_scripts,
handle_vehicle_enter_exit.after(PhysicsSet::Sync).before(TransformSystem::TransformPropagate),
handle_collisions,
));
app.add_systems(PostUpdate, (
handle_vehicle_enter_exit,
));
app.add_event::<StartConversationEvent>();
app.add_event::<SendMessageEvent>();
app.add_event::<ChatScriptEvent>();