fix matching velocity when inside vehicles
This commit is contained in:
parent
20b2ae049a
commit
5847fde332
|
@ -428,7 +428,12 @@ pub fn apply_input_to_player(
|
||||||
q_target: Query<&LinearVelocity, (With<hud::IsTargeted>, Without<actor::PlayerCamera>)>,
|
q_target: Query<&LinearVelocity, (With<hud::IsTargeted>, Without<actor::PlayerCamera>)>,
|
||||||
q_closest: Query<
|
q_closest: Query<
|
||||||
(&Position, &LinearVelocity),
|
(&Position, &LinearVelocity),
|
||||||
(Without<hud::IsTargeted>, Without<actor::PlayerCamera>),
|
(
|
||||||
|
Without<hud::IsTargeted>,
|
||||||
|
Without<actor::PlayerCamera>,
|
||||||
|
Without<actor::Player>,
|
||||||
|
Without<actor::PlayerDrivesThis>,
|
||||||
|
),
|
||||||
>,
|
>,
|
||||||
mut q_playercam: Query<
|
mut q_playercam: Query<
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in a new issue