0 -> 1
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user