- Home /
Touch and move in any axis
Hello, I have a cube within an open box. I had developed the physics and the cube collides with the box.But I don't know how to do the logic part. I mean: When a user(Android) touch the cube in the screen and his finger goes on the right, the cube will be thrown on the right. If his finger goes on the left, the cube will be thrown on the left, and; if his finger goes up, the cube will be thrown up.
I know that the expert developers don't really like giving code,but this case is very particular and I am looking for information or script code in Google and Unity's information several days but I didn't find nothing yet.
Thank you very much. Frank.
Your answer
Follow this Question
Related Questions
How to add Jump control from touch on screen? ANDROID 1 Answer
iPad touch - Move left/right/jump 0 Answers
Two near-identical scripts cause a cat to jump in different ways - why? 2 Answers
"sneak mode" (ctrl key) stops my movement. 0 Answers
How do I lock Y Axis movement for Parented Camera? 3 Answers