Hi all, I don’t Know how to Achieve this thing so i post in forms. I have one game object , when i touch and drag right side(on screen) one doted Trajectory show and when release the finger the object should go based on that trajectory. Here is the Example image what i want. I searched a lot but i found only on cannon based projects.
that link isn’t working, but
like angry birds?
you just need to calculate the normal between point B (dragged point) and point A (static origin)
then apply force using the normal.
a normal is vector3(x,y,z) of floats between 0 and 1, (0,1,0) being straight up, (1,0,0) being straight left, and (0.5f, 0.5f, 0) being diagonal up left.
(pointA - pointB).normalized
Not Exactly like angry birds… here is the image what i want.