Android 2d movable ball

Hello, i just started doing stuff in unity 2d, i want to create a similar android 2d ball game as in “Pou”, there was a ball that you can throw using your finger and it bounces all over the place, i made the ball bouncy but i have no idea how to make that throwing script, didn’t find any simple tutorials on google either. Thank you!

Btw I mean ball like this:

If the ball has a circle collider, you can add it a script with void OnMouseDown() { }. That will detect a click, and Up instead of Down for when mouse is released. Then there is Input.GetMouse*** things to get all sorts of details on where cursor is, how much it moved this frame, which button exactly is down and so on.

1 Like