Control movement in ball run game.

Hello everyone,

I want to have the ball move according to the user’s touch like this video https://www.youtube.com/watch?v=2BH7hpYzYOA, should i use applyForce or set position for the ball. Thank you very much.

First the forward motion of the ball is due to the continuous forward force applied to it, and the left and right displacement of the ball is controlled by the position. Finally, the ball jumps by applying an upward force to the ball.