Hello Rhino community!
I’m trying to lock the rotation of a polyline curve, while keeping a certain transformation, and maintaining collision goals with other geometry.
In the attached GH-File (LockRotation), the “Spikey” polyline can be moved around in every direction, and also collides with the circle. The idea is that the polyline stays aligned with the longer line. Any time it collides with the circle however, it rotates around its centroid, which it shouldn’t. I tried many different ways using the angle goal in combination with the “Box Corners” node, to have something to define an angle upon. Unfortunately without success so far.
I found an GH example by Daniel Piker, where boxes are pulled along a line and changing their orientation along the way. I attached this file as well, but it’s missing something, and I couldn’t get it to work.
Does someone have an idea how to solve this problem?
Thanks a lot!
LockRotation.gh (17.7 KB)
boxrail2.gh (17.6 KB)