- Home /
how to rotate object with joystick (Mobile)
I have been reading the other topics around here that ask the same question, but i can't seem to understand it so well.
The situation: In the center i have a sphere with a chess texture on it for testing. The main camera is a static camera.
I mage a game object called Controls, where i added a GUItexture (joystick), with the mobile joystick script on it.
What i want to do is: rotate left and right of the sphere, when the finger on the joystick moves left and right. up and down should be scaling of the object (the sphere)
where i fail, is understanding how to connect the parts of code. in one of the other questions around here there were some parts of scripts (http://answers.unity3d.com/questions/146434/how-to-rotate-a-object-with-joystick.html ) But where do i need to put these scripts, and how to link this to the sphere and the joystick ?
could someone please help me out a bit? thank you very much in advance.
Your answer
![](https://koobas.hobune.stream/wayback/20220613064154im_/https://answers.unity.com/themes/thub/images/avi.jpg)