Commit Graph

  • f2a71e712a Put the boid separation range back to 1/4 not 1/8 robert 2025-09-03 14:25:16 -05:00
  • dca8bcdaa7 Add speed_controller to maintain system energy robert 2025-09-03 14:19:57 -05:00
  • e6e56506f8 Fix: alignment should align to vel, not impulse robert 2025-09-03 14:11:18 -05:00
  • bc0630b4ae Fix: off-by-one error in alignment averaging robert 2025-09-03 14:09:40 -05:00
  • 76a6b4f999 New cohesion rule function robert 2025-09-03 14:07:50 -05:00
  • 451311126d New separation rule function robert 2025-09-03 14:07:34 -05:00
  • 7b380196a5 Filter-map the entities to avoid self-alignment robert 2025-09-02 16:25:10 -05:00
  • 8b61d38636 Make keyboard control forces, not velocities robert 2025-09-02 16:08:18 -05:00
  • b3cf47e684 Remove BoidBundle, use required-components instead robert 2025-09-02 16:06:54 -05:00
  • 69403bc6ca Fix the physics integrator robert 2025-09-02 15:44:39 -05:00
  • a6240c844a Make another new alignment system robert 2025-09-02 12:24:53 -05:00
  • 3eb23fb4bf Move physics parts to a physics module robert 2025-09-02 10:06:08 -05:00
  • 532025b42f Bump Rust edition to 2024 robert 2025-08-30 15:45:20 -05:00
  • 4150f85ccc Rename & restructure birdoids module robert 2025-08-20 14:23:45 -05:00
  • 214da65db5 Switch off deprecated functions, fix clippy lints robert 2025-08-20 14:18:52 -05:00
  • 325e515a7b Autoformat robert 2025-08-20 14:12:02 -05:00
  • e85114c4c8 Adjust code for Bevy 0.14 -> 0.16 upgrade robert 2025-08-20 14:06:01 -05:00
  • feeeb15d22 Begin v0.2.0-dev and upgrade Bevy version robert 2025-08-20 13:43:10 -05:00
  • a0292eb789 Add a "mini" build profile v0.1.0 robert 2025-05-16 18:37:34 -05:00
  • 076fcd3c3f Full fat LTO for the very best size reduction robert 2024-12-29 15:59:32 -06:00
  • d181a690f8 Bump MSRV for named profiles to work robert 2024-09-12 22:31:29 -05:00
  • 41b487e70e Pin grand-dependencies for -Zminimal-versions robert 2024-09-12 22:22:55 -05:00
  • b75c05940d Run cargo fmt before merging branch robert 2024-07-16 09:31:15 -05:00
  • e09399cc23 Update force functions to use Option<Force> robert 2024-07-16 09:02:09 -05:00
  • abd107d04a Update tests: Force return needs an Option<> robert 2024-07-16 08:50:26 -05:00
  • 519482aaf3 Rename separation_force parameters robert 2024-07-15 14:42:39 -05:00
  • a75704fb49 Placeholder for separation on div-0 error robert 2024-07-15 14:41:46 -05:00
  • 60a0357b0d Tests were missing the BOID_VIEW_RANGE robert 2024-07-15 14:40:18 -05:00
  • 82dabcfabe Fix: Cohesion function was accepting bad input robert 2024-07-15 13:47:52 -05:00
  • c48fe1ed2e Add unit tests for force functions robert 2024-07-15 11:38:39 -05:00
  • 651ed774c3 Move separation_force down with cohesive_force robert 2024-07-15 10:14:13 -05:00
  • 283a0bdde3 Add separation_force function robert 2024-07-15 10:10:56 -05:00
  • 6c38083e6d Fix: Return Force instead of Vec2 robert 2024-07-15 10:04:41 -05:00
  • 930aa2e75d Add cohesive_force function robert 2024-07-15 10:01:43 -05:00
  • 18885d9b94 Rename Acceleration to Force robert 2024-07-12 16:47:27 -05:00
  • 092f0a25dd Give space_brakes a const coefficient robert 2024-07-12 14:49:17 -05:00
  • 27cf0f390b Drop unneeded use line robert 2024-07-12 10:10:33 -05:00
  • f9ce96bbce cargo fmt again robert 2024-07-12 10:00:27 -05:00
  • a161aacaca Crank up the forces to see the boids move! robert 2024-07-11 17:00:12 -05:00
  • 32991d3e37 Fix: Acceleration needs to be reset to 0 robert 2024-07-11 16:56:47 -05:00
  • bb33fda018 Fix: spatial tree update frequency is too low robert 2024-07-11 16:53:38 -05:00
  • 8001bbceb9 Refactor alignment() to use velocity_of_boids robert 2024-07-11 16:23:53 -05:00
  • d2a9d1214a Refactor cohesion() to use center_of_boids() robert 2024-07-11 15:40:51 -05:00
  • e38df137a8 Move util functions below systems functions robert 2024-07-11 15:24:57 -05:00
  • 336992573e Completed velocity pointer gizmo robert 2024-07-11 14:46:36 -05:00
  • ac25a41f77 Fix: off-by-one in the boid count enumeration robert 2024-07-11 14:13:07 -05:00
  • a0d2e2b467 Debug draw CoM is working!... CoM has error robert 2024-07-11 14:02:55 -05:00
  • c75374a566 Cursor gizmo mode changing inputs are working robert 2024-07-11 11:14:56 -05:00
  • 3b03be7dbf Scaffolding for selection & scanning modes robert 2024-07-11 09:32:37 -05:00
  • 2cbe15e72b New DebugUI plugin robert 2024-07-11 09:13:07 -05:00
  • 9f37addb5f This is only a Boids project, now. Drop others. robert 2024-07-11 08:33:33 -05:00
  • d99326d849 Braking function to slow all boids robert 2024-07-10 16:27:21 -05:00
  • 7eb65df7cf Alignment function complete, seems off... robert 2024-07-10 16:26:56 -05:00
  • 1fc79ae7bb Spawn boids in larger ring so they don't pop apart robert 2024-07-10 15:03:49 -05:00
  • 806c23c620 Use 1.0 for steering, and small init velocity robert 2024-07-10 14:53:10 -05:00
  • 8fb11fe800 Make cohesion() affect the acceleration robert 2024-07-10 14:38:41 -05:00
  • eb6d4b2e32 Further rewrite of cohesion to match separation robert 2024-07-10 14:35:46 -05:00
  • 95cdd90485 Fix over-application of cohesion forces robert 2024-07-10 14:03:38 -05:00
  • a0323af081 Fix: Put the cohesion function back in robert 2024-07-10 10:59:18 -05:00
  • 13cacb558e Fix: force direction & magnitude for separation robert 2024-07-10 10:53:12 -05:00
  • 368d6c9201 Boids clumping (try for separation function) robert 2024-07-10 10:34:16 -05:00
  • 38c1d779c1 Just use a for loop in the cohesion function robert 2024-07-10 08:40:48 -05:00
  • 3293706328 Iterate over all boids instead of only the player robert 2024-07-09 17:02:14 -05:00
  • 5d41cd57d3 Fix cohesion force vector robert 2024-07-09 16:42:19 -05:00
  • 4cf591f937 Cohesion function... sorta. Cohesion *no* function robert 2024-07-09 16:37:46 -05:00
  • 3a680a4ea2 Added bevy_spatial for boid interactions robert 2024-07-09 11:56:52 -05:00
  • ecbfea04be Apply cargo check fixes robert 2024-07-09 10:43:20 -05:00
  • 84fa15bd77 cargo-fmt robert 2024-07-08 16:53:02 -05:00
  • ed33b8e615 New Cargo.toml config & updated lock file robert 2024-07-08 16:46:37 -05:00
  • 8f52ad3954 Border avoidance system robert 2024-07-08 16:10:31 -05:00
  • 7224199a94 Delete unused entity spawn, add player color const robert 2024-07-08 15:18:18 -05:00
  • 20d12bb056 Slightly better signature for keyboard handler robert 2024-07-08 14:20:29 -05:00
  • 2e5c34da3d Basic player character steering robert 2024-07-08 14:18:50 -05:00
  • 38a252c59c Add keyboard event handler. "Q" to quit program robert 2024-07-08 14:00:07 -05:00
  • 188b571be8 Starting the Boids impl. Dot explosion robert 2024-07-08 13:32:54 -05:00
  • ce2da247a4 GH Actions have prompts in non-interactive mode robert 2024-07-05 16:30:59 -05:00
  • 71e27cc3fd Adjust workflow to install ALSA robert 2024-07-05 16:26:39 -05:00
  • 491014be0a Format all cargo source files. robert 2024-07-05 16:19:32 -05:00
  • 2349538199 Check-in a check.yml workflow: jonhoo/rust-ci-conf robert 2024-07-05 16:10:31 -05:00
  • 593f3edd10 Breakout game as plugin robert 2024-07-05 15:49:47 -05:00
  • d90e70e084 Extract games into own modules as Bevy Plugins robert 2024-07-05 15:37:52 -05:00
  • e636813b48 Breakout game, from Bevy examples robert 2024-07-05 14:55:30 -05:00
  • 3b9114d4b2 Followed getting-started guide robert 2024-07-05 08:45:34 -05:00