fix camera jitter~

This commit is contained in:
yuni 2024-03-30 19:51:41 +01:00
parent a0577f4e7e
commit 7d36200a24

View file

@ -17,6 +17,7 @@ impl Plugin for CameraControllerPlugin {
app.add_systems(Update, manage_player_actor.after(handle_input)); app.add_systems(Update, manage_player_actor.after(handle_input));
app.add_systems(PostUpdate, sync_camera_to_player app.add_systems(PostUpdate, sync_camera_to_player
.after(PhysicsSet::Sync) .after(PhysicsSet::Sync)
.after(apply_input_to_player)
.before(TransformSystem::TransformPropagate)); .before(TransformSystem::TransformPropagate));
app.add_systems(Update, update_fov); app.add_systems(Update, update_fov);
app.add_systems(PostUpdate, apply_input_to_player app.add_systems(PostUpdate, apply_input_to_player