Im following this course but when I got into physics material 2D the and set the bounciness to 1 the ball keeps bouncing higher and higher. shouldn't that be that the ball will bounce on the same height no matter what? I am using Unity 5 Here is the image of my ball properties and the physics material 1 indicates a perfect bounce with no loss of energy, so how come that every time my ball bounce it keeps getting higher?
Solved after changing the Collision Detection of Rigidbody 2D to Continuous. But I noticed slight higher, lower, higher, lower... bounces. But in previous version(4) there is no need to change from Discrete to Continuous. @tedthebug sorry I don't understand what you're saying I hope you're talking about Physics2D Material.
sorry, I was confused with 3D as I've used it on both 2d & 3D games. I've never had this issue in my 2d games
That's because the physics engine is not very precise. There is a web page comparing bounces for the same (or approximate) settings on various 3d engines like bullet, havok, newton and physx and the imprecision is really noticeable. I can't find the link any longer, sorry.