2D Collision, how to keep shapes out of an area?

Hello Kangaroo Master.

Here is what I am trying to do.

  1. Keep the green shapes outside && in-touch with the red shape, do not overlap. Red shape must not deform or move or anything. It must be stationed as it is.

  2. I do not know what I am missing, in my approach, the red shape is deforming.

  3. Attached is the gh file.

F.Y.I, I am on Rhino5 64, GH 0.90076, K2.42
Thank you for your help.collisions2D.gh (20.2 KB)

Using the Kangaroo in R5, you can avoid the red shapes deforming by using CurvePointCollide. Since any overlap here would have to involve a point from a green shape being inside the red shapes. This goal treats the curve as a static input, so it won’t deform.
crvcollide_r5.gh (19.0 KB)

…in Rhino 6 though, all the collisions and shape preservation are done by one component:


and preserving the orientations is just a matter of adding a support:

curvecollide_r6.gh (15.8 KB)

3 Likes

Thank you for the reply. Master of Kangaroo.

I have downloaded R6, after installing, run gh, trying to load your curvecollide_r6.gh Rhino gives me this window.

After Rhino re-starts, pressed the gh again, Rhino gives me the same Unrecongnized Objects window.

Am I missing something?

Thank you again for looking into this.

I think you can open the R5 in R6 because it also works in R6