Is there a way to move an object about its axis to the direction of touch ?Suppose when I click on left the object should move to left about its axis or when I click on right side it should move to right side about its axis. [import]uid: 82446 topic_id: 19457 reply_id: 319457[/import]
Yes there is. You touch function would have to take into account the touches location relative to the object and change the rotation based on that. Its actually really simple:x = touch.x - obj.x, y = touch.y - obj.y , find degrees using artan2 and adjust rotation accordingly. You might have to add or subtract some degrees in order to get the correct rotation. [import]uid: 54716 topic_id: 19457 reply_id: 75132[/import]