CodingTrain / CodingTrain/Suggestion-Box

Unrealistic turns in boids simulations

Open
#1,623 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

Hi, I have a question about boids simulation. Is there a way to improve core algorithm to prevent unrealistic, almost instant turns when new target is behind boid? Maybe some limit to rotation, but how to implement this in seek behavior without ruining other parts of simulation?

I've created simple example with sprite:
https://editor.p5js.org/patwork/present/Z82AjNDss

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.