Fix warning
This commit is contained in:
parent
0deaffcd32
commit
ed151906b4
|
@ -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();
|
let (mut velocity, speed, heading) = query.single_mut();
|
||||||
**velocity = heading.normalize_or_zero() * (**speed);
|
**velocity = heading.normalize_or_zero() * (**speed);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue