I’m trying to create a sphere that bounces forever, and after each bounce, it always reaches a fixed height.
I added a physic material to a sphere. I set Dynamic and Static Friction to 0, Friction Combine to “Minimum”, Bounciness to 1, and Bounce Combine to “Maximum”. But unfortunately, the sphere gains energy after each bounce. This results in the sphere gaining height during each bounce.
I’ve searched for solution online which do not require any code. But none of them are useful. My only option is to use code. Is there a way I can cause the sphere to bounce forever, without gaining or losing energy, so that it always reaches the same height after every bounce?

