Fix warning
This commit is contained in:
parent
0deaffcd32
commit
ed151906b4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue