Put the boid separation range back to 1/4 not 1/8

With the 1.0 radius boids (instead of whatever `Circle::default()`
uses), a separation activation of 1/4 the range looks more visually
appealing (imo).
This commit is contained in:
2025-09-03 14:25:16 -05:00
parent dca8bcdaa7
commit f2a71e712a

View File

@@ -203,7 +203,7 @@ fn separation(
// apply force
for (this_entt, tsfm, mut force) in &mut boids {
let impulse = spatial_tree
.within_distance(tsfm.translation.xy(), BOID_VIEW_RANGE / 8.0)
.within_distance(tsfm.translation.xy(), BOID_VIEW_RANGE / 4.0)
.iter()
.filter_map(|(pos, entt)| {
// Skip self-comparison. A boid should not try to separate from itself.