Change mouse controlled aim to iphone swipes

This is probably really easy but how would I do this on the iphone, like controlled by swipes or something. Thanks

function Update () {
transform.localEulerAngles.y += Input.GetAxis("Mouse Y") * 1;
}

Input.acceleration.y would be the nearest to your original. Swipes would be done differently.

And isn’t “* 1” redundant?

Thanks. yeah, at first I was trying to see how sensitive it was, and was seeing how high it should be but just settled on one and just never took it away.

Oh and how would swipes be done?

For a simple swipe record the position and time of touch start, and the position and time of touch end. Compare to give direction and speed.

Of course this will interpret a lot of different gestures as swipes, so you may wont to track the touch as it moves too. i.e. checking that it hasn’t deviated too far from a straight line.