This commit is contained in:
2026-03-21 10:31:08 +00:00
parent dd703f05f3
commit 31516f5c58
+1 -1
View File
@@ -597,7 +597,7 @@ pub fn movement(
let next_point = path[ambulatory.path_index]; let next_point = path[ambulatory.path_index];
let current_crowded = occupancy.count_at(transform.translation) > 2; let current_crowded = occupancy.count_at(transform.translation) > 2;
let occupied = !current_crowded && occupancy.count_at(next_point) > 0; let occupied = !current_crowded && occupancy.count_at(next_point) > 1;
if occupied { if occupied {
let move_dir = next_point - transform.translation; let move_dir = next_point - transform.translation;
if move_dir.length_squared() > 0.0 { if move_dir.length_squared() > 0.0 {