Fix character controller jitter (#43)
* fix jitter while moving character controller * added transform interpolation to character controller
This commit is contained in:
@@ -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)),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user