initially image placed (0,0)th position and where ever i touch that is end position.
Now i got Start Position(0,0) and End Position(200,200).
i want to move start to end vector using angle.
If anyone now the ans please tell me.
|
initially image placed (0,0)th position and where ever i touch that is end position. Now i got Start Position(0,0) and End Position(200,200). i want to move start to end vector using angle. If anyone now the ans please tell me. |
|||||||||||||
|
|
You need to find the delta between your two vectors and just move the sprite along that new vector.
|
|||
|
|