Hi,
I would like to ask about Kangaroo2 and adding elements incrementally.
I made a small C# class for moving a point, that adds segments iterativelly with timer.
It works well, but the simulation gets slow as long the numbers of elements increases.
In the end, there are not so many elements, but the procedure for adding elements each 20 ms makes trouble.
Is it possible to make this process faster?
I attached .gh file and .gif bellow.
http://payload432.cargocollective.com/1/20/653920/10942564/Untitled...
Thank you,
Petras
Daniel Piker
Hi Petras - Interesting definition!
I think it would probably be faster to actually call the Kangaroo library from within the same C# script you are using to add the elements. Have a look at the scripting examples in the Kangaroo download folder.
Just adding the goals through code instead of components will probably speed things up significantly, but to further improve it you could also manage the particle indexing directly.
Normally Kangaroo handles all this automatically - searching for pairs of coincident points to combine into single particles so that elements are properly connected. However, this searching does have a time cost, and if you are creating the elements through code, you can avoid this because you know the appropriate indexing already.
Feb 4, 2016