Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

noahgolm

macrumors member
Original poster
Aug 18, 2010
65
0
I have a player that I would like to be moved by the player dragging (this works just fine). Really, though, I would like to restrict the movement of the object along a locked path, maybe by determining the vector of the drag if necessary. Is there any easy way to accomplish this? I've looked into implementing a bezier curve, but making a regular arc, along with calculating the control points and such, seems a bit difficult for me.

Oh, and if it wasn't already made clear, the locked path is set to be an arc (the same shape as a quarter of a circle).

Thanks for any suggestions!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.