Tweaking flocking model to torus space? #60
Unanswered
selforganizing
asked this question in
Q&A
Replies: 1 comment
-
|
Hi @selforganizing ! I am not sure myself, I had followed the logic from this pseudocode: https://vergenet.net/~conrad/boids/pseudocode.html If you find a better logic for this model, feel invited to suggest a change to the model :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Great package, really useful. I'm trying to tweak the (Reynolds) flocking model to have a toroidal space, instead of avoiding the spatial borders. But the boids get stuck on the borders (see screenshot below) instead of flying through to the other side? I commented out the code segment calculating v4 (and omitted it from the velocity addition) and switched

torus=Truein the space declaration. What do you think am I missing? Thanks a bunch in advance ~Beta Was this translation helpful? Give feedback.
All reactions