This commit is contained in:
2025-07-05 16:59:17 -04:00
parent c1fac3a1f3
commit 992e2f703f
7 changed files with 59 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ use crate::{
player::{GravityDirection, JumpSpeed, MoveSpeed, PlayerDrag, PlayerForce, PlayerMotion, PlayerVelocity},
tags::Player,
},
states::{input::PlayerInputSystems, play::PlaySystems},
states::{input::InputWorldSystems, play::PlaySystems},
utils::{input::get_mouse_delta, rotation::get_alignment_rotation_preserve_twist},
};
@@ -17,7 +17,7 @@ pub struct PlayerPlugin;
impl Plugin for PlayerPlugin {
fn build(&self, app: &mut App) {
app.add_systems(PreUpdate, (keyboard_input, player_look).in_set(PlayerInputSystems));
app.add_systems(PreUpdate, (keyboard_input, player_look).in_set(InputWorldSystems));
app.add_systems(
Update,
(apply_gravity, apply_forces, apply_motion, apply_drag)