Basketball dribbling

I originally used animations for my basketball game’s dribbling. I’ve ran into a pretty big issue though. I have character customization, and if I make the player taller, wouldn’t the dribbling animation be effected, like the ball would not reach the ground? If so, do you have any solutions or other ways to handle dribbling. I put this in scripting support because If there are other ways I suppose it has to do with scripting. Thanks.

If the animation is what I think where it just animates from the arm to the feet cant u just do some tweening/ interpolation from the feet to the tool tip?

So I have tried that, but in order to get the correct cframe to tween to, I tried to do adding and as you know you cant add cframes so it just got very complicated.

Tweening is basically at a high level a simplification of the linear intepolation formula. You don’t need a cframe you can just do like position = hand.Position - (foot.Position + hand.Position) * t

Where t is just a incrementing value from 0 to 1

2 Likes

You could perhaps create a value and depending on how tall your avatar is will determine how high or low your value will be. The value would determine the floor level (how far the floor is from the ball) to provide an accurate simulation of the ball bouncing. Its just an idea you could put into consideration.

1 Like

That should actually work thanks! I tried that before but I confused myself and you made it much simpler so thank you a ton.

Thank you for your input, I wll use both of your ideas!

1 Like

Ah ok, here is where I ran into the problem last time. On dribble moves, like a crossover, how would I use your way of doing this. What I would need is the ball to go diagnal forward between the legs.

I guess you could hardcode those values in and use the y position you get as a reference (maybe do some unit circle black magic?)

Yeah, I have a feeling this is going to be very tricky to do.