Fix character controller jitter (#43)

* fix jitter while moving character controller

* added transform interpolation to character controller
This commit is contained in:
PROMETHIA-27
2025-06-19 03:27:59 -04:00
committed by GitHub
parent a2ea917c1e
commit e1abb02cb8
2 changed files with 28 additions and 24 deletions

View File

@@ -48,8 +48,10 @@ pub fn plugin(app: &mut App) {
app.init_resource::<CameraState>();
app.add_systems(OnEnter(GameState::Playing), startup);
app.add_systems(
PreUpdate,
(update, update_ui, update_look_around, rotate_view).run_if(in_state(GameState::Playing)),
RunFixedMainLoop,
(update, update_ui, update_look_around, rotate_view)
.after(RunFixedMainLoopSystem::AfterFixedMainLoop)
.run_if(in_state(GameState::Playing)),
);
}