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:
@@ -201,7 +201,7 @@ fn separation(
|
||||
for (this_entt, tsfm, mut force) in &mut boids {
|
||||
let impulse = spatial
|
||||
.shape_intersections(
|
||||
&Collider::circle(props.view_range),
|
||||
&Collider::circle(props.view_range / 4.0),
|
||||
tsfm.translation.xy(),
|
||||
0.0,
|
||||
&SpatialQueryFilter::default(),
|
||||
|
||||
Reference in New Issue
Block a user