how do I create a bouncing ball in unity that bounces to the same height and that I can make it fall quicker or slower? I've tried to do it from rigid body settings but the ball keeps climbing and I can't control the falling speed. Help
1 Answers
2
votes
Multiply your desired height vector with a positive sine wave (negative values get multiplied by -1) and add this to your initial position of the ball.
To control the speed of the ball you can multiply the value you use to evaluate the sine function with another factor.
heightVector * |sin(time * speed)|
