Unity3d How to rotate an Object by using touch

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,573
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 20, 2011

In this tutorial I will show how to move or rotate a 3d object by using touch events in Unity3d.

See how it runs in the iPhone4:
http://youtu.be/w6dYzWaP3M8

See more Unity3d or iOS SDK tutorials at:
http://www.revelopment.co.uk

Find the complete source code at:

http://www.revelopment.co.uk/tutorials/unitytutorials/73-howtorotateanobjectb...

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (crevelop)

  • Hi thanks for sharring, but why doesnt it rotate smoothly?

  • @tmtat Hi, thanks for the comment.

    Well, it does rotate smoothly when running in the actual iOS device. You are probably running it from the Unity editor by using the Unity remote, aren't you?.

    You will always experience that lag while testing from Unity remote due to the WiFi Connection that's all, but it doesn't mean the script is not working properly. In the end, you will deploy to the device, and it works like a charm from there, trust me.

    Anyway it was good to point that out, cheers!!!

see all

All Comments (7)

Sign In or Sign Up now to post a comment!
  • THANK YOU SOO MUCH for doing this tutorial!

  • Great video! Could you explain how to apply this to a 3D model? Like .dae?

    Thanks!

  • hye..

    how to rotate only horizontal axis not vertically?

  • How can you do this with the mouse?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more