to swipe the ball on swipe direction as swipe speed in c#

how to make the ball swipe on swipe direction in c# for bowling game.

On the AssetStore you can find a library called “TouchScript” and it offers all you need.
Good luck!

What you have to do is save the Input.getTouch(0) position on phase.Began and phase.End, construct the direction verctor of those position ( math - Direction of two points - Stack Overflow ), then add force in that direction ( rigidbody.AddForce(direction * force)). Don’t forget to normalize your direction (direction.Normalize()), and make sure that the y is 0, so the ball wont fly. I could write the code, but is better if you try yourself. Just post your code here, and we will see were you went wrong.

thanks for idea…

thanks for idea…
[