fix npc aiming and shooting
This commit is contained in:
@@ -146,7 +146,7 @@ fn update_npc_aim(
|
||||
let mut target_distance = f32::MAX;
|
||||
|
||||
for (e, t) in potential_targets.iter() {
|
||||
let delta = pos - t.translation;
|
||||
let delta = t.translation - pos;
|
||||
|
||||
let distance = delta.length();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user