Skip to content

Improve boids 4.0#523

Draft
PLAZMAMA wants to merge 58 commits intoPufferAI:4.0from
PLAZMAMA:improve_boids_4.0
Draft

Improve boids 4.0#523
PLAZMAMA wants to merge 58 commits intoPufferAI:4.0from
PLAZMAMA:improve_boids_4.0

Conversation

@PLAZMAMA
Copy link
Copy Markdown
Contributor

this PR is the improvements of the boids env made by this PR #246 migrated to 4.0.

@PLAZMAMA PLAZMAMA marked this pull request as draft April 13, 2026 03:13
@PLAZMAMA PLAZMAMA force-pushed the improve_boids_4.0 branch from b50c9d1 to e046861 Compare April 14, 2026 21:23
@PLAZMAMA PLAZMAMA force-pushed the improve_boids_4.0 branch from e046861 to f8d99f3 Compare April 18, 2026 16:24
Normalized the separation, alignment, and cohesion rule contributions to unit vectors scaled by their factors, and fixed the global velocity clip in boids.h to use the actual magnitude of normal_v and only rescale when it exceeds VELOCITY_CAP (true Option B), replacing the previous per-axis flclip and a broken clip that was dividing by leftover rule_dx/rule_dy values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant