x


Control Rotation via Touchscreen on iPad?

Hello, i've developed a project where i used a sphere to lay a texture on it. on a Computer, the user would rotate the Sphere (to see the different pictures on the sphere) using the standard WASD layout. To reset the Sphere, i've bound a reset function to the Z button. And for a little automatic Rotation, i've bound the button R to a function making the sphere rotate a fixed amount of degrees around the X-Axis.

My Question is the following :

How do i make viable control mechanism's for the iPad? i'm talking about touchscreen navigation here.

any help is appreciated

more ▼

asked Jun 16 '11 at 07:04 AM

biohazard gravatar image

biohazard
288 36 42 46

if you want/need the Script, let me know and i'll post it.

Jun 16 '11 at 07:05 AM biohazard

Can't anyone answer? :/

Jun 17 '11 at 08:59 AM biohazard
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

So, one, you need Unity IOS to build to iPhone iPad, if id did not need any extension for IOS a month ago that would have been because you were in your 30 day trail version.

Unity IOS is 400 bucks.

The script you are looking for is not hard to do. How I did it I looked at the Input documentation for IOS, There you will find a Input.GetTouch script that moves an object according to touch. That script is easily converted to a rotation script by changing the Translate to Rotate and maybe changing some of the axis around.

Let me know if that is what you were looking for.

more ▼

answered Jun 17 '11 at 11:37 AM

Anxowtf gravatar image

Anxowtf
1.6k 22 27 37

ONE : i bought unity iOS like a min ago :d

two : would you possibly have a link for me? :)

Jun 17 '11 at 11:40 AM biohazard

Thanks for gratz and the answer :p

Jun 17 '11 at 11:49 AM biohazard
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5076
x3736
x3459
x3328
x360

asked: Jun 16 '11 at 07:04 AM

Seen: 1748 times

Last Updated: Jun 17 '11 at 11:49 AM