change the variables around. press m to use 3-dementional trig to figures out where the pen will be based on the x/y and x/z plane directions and the Distance to the radius.