Fix: separation() system needs smaller view range

I figured out why the new flocking behavior is different...

The previous version used 1/4th the view range for boid separation and I
didn't preserve that.
This commit is contained in:
2025-12-25 22:58:03 -06:00
parent 9797b90415
commit 62feb6f313

View File

@@ -201,7 +201,7 @@ fn separation(
for (this_entt, tsfm, mut force) in &mut boids { for (this_entt, tsfm, mut force) in &mut boids {
let impulse = spatial let impulse = spatial
.shape_intersections( .shape_intersections(
&Collider::circle(props.view_range), &Collider::circle(props.view_range / 4.0),
tsfm.translation.xy(), tsfm.translation.xy(),
0.0, 0.0,
&SpatialQueryFilter::default(), &SpatialQueryFilter::default(),