I’m basically looking to achieve an effect like below on the fly. I’m trying to make a system that takes two parts like below with a circle decal on the top face touching the edge of the part, and creates attachments at the nearest points between the two to attach a beam to. It can’t be done via rotating the circle part itself as there can be any number of beams to attach. I’m not really sure how I’d go about getting the angle between the two relative to their rotation to calculate the radius point for though. Any ideas how I’d best go about this?
1 Like
is this in a gui or what???
1 Like
2 Likes
Two positions a and b
Two radiuses for the circle at a and the circle at b
World attachment position at a = (b-a)*radiusAtA+a
World attachment position at b = (a-b)*radiusAtB+b
These of course would be the attachment0 and attachment1 of a beam which would be set up however you need it to be
3 Likes
