Swipe System on the ball

Hello all. I want to make it so that by swiping the mouse on the ball in the right direction and at the right speed, it will roll in the same direction and at the same speed.

I found some similar topics, but I don’t understand anything there:

I need a ready-made script or even a model with a script that you can share. I would be very grateful. Thank you for reading.