This commit is contained in:
yuni 2024-03-29 17:22:54 +01:00
parent f0739606ad
commit 349e38e848

View file

@ -54,7 +54,6 @@ fn run_camera_controller(
&mut Transform,
&mut CameraController,
&mut Projection,
&mut actor::Actor,
&actor::LifeForm,
&mut actor::Engine,
&mut AngularVelocity,
@ -70,7 +69,7 @@ fn run_camera_controller(
focused = window_result.unwrap().focused;
}
if let Ok((mut transform, mut controller, mut projection, mut actor, lifeform, player_engine, mut angularvelocity, mut v)) = query.get_single_mut() {
if let Ok((mut transform, mut controller, mut projection, lifeform, player_engine, mut angularvelocity, mut v)) = query.get_single_mut() {
if !controller.initialized {
controller.initialized = true;
transform.rotation =