set position to
this is such fundamental math, anyone making games should invest time into learning basic trig concepts. You'd be doing yourself a great service. The pin behaviour is just using the same method, wrapped up into the behavior. Learn the math, you'll be able to do complex things without relying on behaviours.