Glue shape to any point on the perimeter of another shape

Started by ovi, November 15, 2022, 11:42:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ovi

Hello everyone,
I would like to create a behaviour where a shape (in the image bellow the triangle or the arrow) attaches to any point on the perimeter of another shape (in the image bellow the rectangle and the line) as if there were a connection point.


Any ideas how to do it?

Thomas did something very similar in this post were a line connects to any point of another line. However I didn't understad exactly how it was implemented in order to replicate it...



Nikolay