1
$\begingroup$

I am trying to create a school of fish swimming around and looping seamlessly, but I cannot loop the particles because (I think) it is impossible to control the particles following the leader location.

Is there any way of making boids particles loops seamlessly? I have tried everything I could think of, but no luck. Any ideas?

$\endgroup$
1
  • 2
    $\begingroup$ i don't think that is possible because boids itself use lots of randomness....and changing just one parameter will change the whole simulation. If you really want a loop, you have to fake that manually ...i think... $\endgroup$
    – Chris
    Commented Feb 16, 2022 at 13:10

1 Answer 1

2
$\begingroup$

Assuming you use a script node:

One way to do it would be to capture boid positions p(a) and velocities v(a) at a loop frame, then every subsequent multiple of time T, ease values to the original P and V. like V = (v(a) - V) * .1.

frame T            frame T * 2           frame T * 3
|=======================|====================|===========
|                 |           |        |           | 
capture       start           end      start        end 
values        tween           tween    tween        tween

this should be an option in any boid simulation module!

$\endgroup$
2
  • $\begingroup$ Sound great but to complicated for my skill set. $\endgroup$
    – Ebi
    Commented May 10 at 15:15
  • $\begingroup$ It‘s not that bad. Capture a list of target positions. Then every loop time, move the boid toward the target until target reached. Then resume boid behavior $\endgroup$ Commented May 11 at 16:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .