I had some problem with rotation of the object.
The problem is when i move forward to x and y axis object rotation is okey, but if i move backward on x and y axis object dont rotate, can someone help me?
here’s the line of code for rotation
--destx and desty tapped area on the screen xDistance = destx - obj.x yDistance = desty - obj.y obj.rotation = math.deg(math.atan(yDistance / xDistance))
Im new to corona and i dont know some functions.
Regards, Joro