Help needed with basketball dribble system

Hello guys, I am trying to make a basketball game with Unity engine but I’m having a hard time coding a dribble system/ bouncing ball in the player’s hands.
I’m trying to make a dribble system where the player would bounce the ball and the ball comes back into their hand after each bounce for idle animation and also be able to perform different basketball moves such as crossovers and 360 spins on the keypress. The link attached is an example of the dribble system I’m talking about(yes that’s nba 2k22 ). I’ve only been coding in unity for a year so I’m a fairly new game developer so I would really appreciate it if people could give me tips or solutions on how I would make such a system. Thanks, guys.

Hi, you can use Animations to make the ball bounce in pre recorded patterns.
Search for Unity Animation, and Animator tutorials.

This is one for starters.

1 Like

Thank you i will try that and see how it works