Rotate object with iphone

Hi

I am new with Unity and Iphone (not scripting, I used to work with Basic, Python, PHP), I am learning with the VTC’s unity and Iphone training course.

I want to rotate an object in same way as iphone does.

where can I found some kind of tutorial about it?

I am reading about input class, but I can´t understand how it works.

Thanks you

What do you mean by rotating an object “in the same way as iPhone does”?

Did you mean how the screen rotates or how an object rotates in 3D space? If it was the latter, you may want to take a loot at this link: Unity Script Reference on Transform.Rotation

I trying this:

I am looking for a “labyrinth” game effect… if you tilt your iphone to left-right or up-down, your “scene” follow it. Camera and “scene” are children of a “null” with that script.

anyhow… thanks for your response.