Uses trig ratios. if u want to play with which way it rotates or starting position code it urself its not too hard