more responsive player input (hopefully?)

This commit is contained in:
yuni 2024-05-07 21:44:23 +02:00
parent 0f5c4d1d89
commit 875e27ccf1

View file

@ -42,9 +42,7 @@ impl Plugin for CameraPlugin {
.before(TransformSystem::TransformPropagate)); .before(TransformSystem::TransformPropagate));
app.add_systems(Update, update_map_camera); app.add_systems(Update, update_map_camera);
app.add_systems(Update, update_fov); app.add_systems(Update, update_fov);
app.add_systems(PostUpdate, apply_input_to_player app.add_systems(PreUpdate, apply_input_to_player);
.after(PhysicsSet::Sync)
.before(TransformSystem::TransformPropagate));
app.insert_resource(MapCam::default()); app.insert_resource(MapCam::default());
// To center the renderer origin on the player camera, // To center the renderer origin on the player camera,