Draw Path to follow

Hi guys,

I want to make a game that can player can draw a path for a object to follow, a very good example is Flight Control on iOS.

I don’t know how to make this system, does anyone know and can give me a hand please?

Thank you. :wink:

Buy one of the beizer curve packages from the asset store.

On touch you start detecting the x/y of the finer.

Every x milliseconds you detect where your finger is record the vector2

Every x seconds you create the beizer curve with the array of vector2’s you stored (you may need to convert to vector3).

Then once you have the beizer curve created you can animate the object along the curve by using one of the beizer curve functions to find the current vector position at a certain distance along the curve (percentage, usually 0-1 or 0-100).

Thanks for the information. What curve packages do you recommend?