Please excuse me for my bad English.
I am creating a virtual joystick to move a character (camera angle like Diablo III ) . Everything is working perfectly , except that I can not
rotate the character according to the direction of the joystick yet.
I created two GuiTexture . One appears where the player touches and remain in the same position until the touch ends. The second appears and follows the touch every frame .
( e.g.
the gray base is the first image and the red ball is the second image.)
I'm trying to get the angle between these two GUITextures , turning them into Vector2 and using Vector2Operator/Angle, but I'm having very strange results (float ), it seems that it returns me something like the distance between these two GUITextures, not the angle or something similar.
I've also tried converting the position of each GUITexture for World Position and then use Vector3Operator/Angle but no success.
Someone could tell me what I'm doing wrong or have any other solution?
Thank you!