From 082851896357c41c58be5e278bdae13f997cf8e4 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sun, 21 Dec 2025 15:31:08 -0600 Subject: [PATCH] Begin 0.7.0-dev, small upgrade to behavior params I'm not happy with the flocking behavior so I fiddled with the program to find these new behavior parameters. It's annoying to constantly rebuild the program, though, and I'd like for the end-user to be able to fiddle with it at runtime. To that end, v0.7.0 shall be the UI update. --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/birdoids/mod.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 031dcdce..f2cd7b4e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -142,7 +142,7 @@ dependencies = [ [[package]] name = "another-boids-in-rust" -version = "0.6.0" +version = "0.7.0-dev1" dependencies = [ "bevy", "bevy_spatial", diff --git a/Cargo.toml b/Cargo.toml index fa26212e..2111db2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "another-boids-in-rust" -version = "0.6.0" +version = "0.7.0-dev1" edition = "2024" license = "AGPL-3.0-only" diff --git a/src/birdoids/mod.rs b/src/birdoids/mod.rs index be048169..590f006b 100644 --- a/src/birdoids/mod.rs +++ b/src/birdoids/mod.rs @@ -12,8 +12,8 @@ const PLAYERBOID_COLOR: Color = Color::srgb(1.0, 0.0, 0.0); const TURN_FACTOR: f32 = 1.0; const BOID_VIEW_RANGE: f32 = 15.0; const COHESION_FACTOR: f32 = 1.0; -const SEPARATION_FACTOR: f32 = 10.0; -const ALIGNMENT_FACTOR: f32 = 1.0; +const SEPARATION_FACTOR: f32 = 5.0; +const ALIGNMENT_FACTOR: f32 = 2.0; const SPACEBRAKES_COEFFICIENT: f32 = 0.5; const LOW_SPEED_THRESHOLD: f32 = 50.0; const HIGH_SPEED_THRESHOLD: f32 = 200.0;