Need Help detecting horizonatal and vertical touch/swipe

Hi,

I am doing some work and I would like to be able to go left to right OR up and down.

Right now my unity app tries to go both ways.

WHat technique can I use so it either goes left to right OR up and down?

'splain yourself Lucy.

touch swipe direction is very easy to detect. You can do many things to see.

One might be to detect delta position.

another would be to record your touch position at beginning, then as you move. or at end.

I figured it out.

Thanks.

Was just a math problem.