Fix warning

This commit is contained in:
Daniel Flanagan 2023-12-22 22:00:14 -06:00
parent 0deaffcd32
commit ed151906b4
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -15,7 +15,7 @@ fn update_position(mut query: Query<(&Velocity, &mut Transform)>, time: Res<Time
}
}
fn mover_movement(mut query: Query<(&mut Velocity, &Speed, &Heading)>, input: Res<Input<KeyCode>>) {
fn mover_movement(mut query: Query<(&mut Velocity, &Speed, &Heading)>) {
let (mut velocity, speed, heading) = query.single_mut();
**velocity = heading.normalize_or_zero() * (**speed);
}