- Home /
Rotating a GUi Texture based on Touch
So I'm trying to create a steering wheel type effect for my Android game using this image(http://i.cubeupload.com/GaM1z2.jpg). What I want to do is that whenever the user touches the GUI Texture, the image will rotate so that the small circle will change to where the user has touched. I don't want the position to change, just the rotation angle. How would I go about achieving this?
Thanks
I'm having trouble with the same thing! Could you please tell me how you achieved this? Here is the link to my question Big Sexy Link! Thank you!
Answer by Sisso · May 28, 2014 at 12:20 PM
Rotate gui texutre
http://answers.unity3d.com/questions/11022/how-to-rotate-gui-textures.html
How to read inputs
http://docs.unity3d.com/ScriptReference/Input-touches.html
Polar coordinates could help
http://en.wikipedia.org/wiki/Polar_coordinate_system
How to script