Ok i ported it successfully and it works fine so far.
There was some things which had troubled me while porting and some things i learned:
- yield return idx; is a really shit shortage for a concatination of an interation in C#
- domain resolution should be left in a smaller range, otherwise it is too slow or somehow unstable.
Here is the result:
Now the next step is to change the spatial grid technique to a dynamic one and implement basic collisions to simulate the boundary.
Thanks for your help so far.