Attempting to script a breaking wave in kangaroo, but there's a solution exception i don't understand

I’m not sure what i’m doing wrong here, but hey, since this is the first time trying to do something in Kangaroo.

i’m getting the following exception: Index was out of range Must be non-negative and less than the size of the collection.

but why? how? and what am I supposed to do about it?
Wave twirl kangaroo test but why.gh (16.3 KB)
script attached,

Thanks in advance

Hi @lrispens,

This definition is using the old version of Kangaroo - I recommend switching to the current version, which is included with Rhino 6. It is faster, more stable, and does not get these ‘out of range’ errors.

Can you describe or sketch what it is you are trying to model?

thanks for the tip, i’ll rebuild this in 6.

basically what I want to do is something like this

But then in grasshopper rhino.

1 Like

This doesn’t seem like actual dynamic simulation is needed.
I would instead make a distance based rotation deformer with some falloff functions:



wave_deform.gh (17.2 KB)

For the smaller ripples you could also add some noise.

8 Likes

That moment when you’ve spend an entire day cutting old documents up with a scissor,

and your m8 comes along and is like “just use a shredder m8” XD

Thanks so much, thats precisely what i wanted, only this is far less difficult. Kudos.

2 Likes