Kangaroo collision between solids

Hello
i tried this animation with Kangaroo; is there a method to make collision between spheres and the other solid?

kangaroo test.gh (12.3 KB)

Example files for the current version of Kangaroo can be found here:
https://github.com/Dan-Piker/Kangaroo-examples
In particular the SolidParticleCollide one from here is relevant:
https://github.com/Dan-Piker/Kangaroo-examples/tree/master/collisions_and_packing
This does collision between particles and a fixed solid, and between each other. If you have multiple spheres of the same radius you want to collide with the solid, you can offset the surface by this radius, so that the surfaces of the spheres end up touching the surface, instead of their centres.
If you have spheres of different radii, you can use the example here:

https://discourse.mcneel.com/t/sphere-packing/73943/5?u=danielpiker

1 Like

Thanks Daniel
If you have multiple spheres of the same radius you want to collide with the solid, you can offset the surface by this radius, so that the surfaces of the spheres end up touching the surface, instead of their centres.

I move the spheres which have different radius to Z axis ; i don’t know if this work when the spheres rotated

That looks like it would be a good approximation when the surfaces are nearly horizontal, but get worse the more sloped they are.
Why are you using the old Kangaroo though? It’s almost 5 years old now, and the new one has lots of improvements and new capabilities.

Thank you
I have both of them but i though this is the newest one.
I will try again with the new version.