- Home /
How to rotate and move object use dual joysticks in Iphone
I would like to using dual joysticks in iPhone and one for moving object, other joystick for rotation.
Would you give me the example code in Java?
I am looking for the script which the object can face to the joystick moving location.
Thanks in advance. :-)
Answer by Jean-Fabre · Feb 26, 2011 at 03:45 PM
Hi,
The best examples are in the resources on Unitwebsites:
http://unity3d.com/support/resources/example-projects/iphone-examples
Hope this helps, if you have already looked at them, can you be more specific as to what you don't understand in how the joysticks scripts works?
Bye,
Jean
Thanks a lot!
I have already looked at them. but still not what I am looking for.
Because I am look for the rotation script which can control and rotate the object but not the camera. Actually, I am looking for the script which the object can face to the joystick moving location.
Thanks in advance. :-)
did you take a look at the unity resources' penelope iphone tutorial?
Answer by crevelop · Aug 18, 2011 at 10:40 PM
I've made few tutorials on dragging and rotating an object by touch(Unity iOS).
These are the Youtube videos:
Dragging http://youtu.be/QjUhQ4z6pF0
Rotating http://youtu.be/oOfPMKdJdKk
Get the source code from my website:
Hope it helps.