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...