- Home /
Why Does Object Keep Getting Faster?
I'm trying to make a 2d Breakout-style game. I have a ball with a rigidbody 2d and a physics material 2d attached. The problem is that the ball increases in speed after each collision with the paddle or bricks.
Why does this happen? How do I get the ball to bounce at a single, consistent speed?
Images of the ball's properties are attached for reference.
Answer by Serinx · Apr 20, 2018 at 03:33 AM
https://docs.unity3d.com/Manual/class-PhysicMaterial.html
Bounciness How bouncy is the surface? A value of 0 will not bounce. A value of 1 will bounce without any loss of energy, certain approximations are to be expected though that might add small amounts of energy to the simulation.
You have your bounciness set to 1.5, this means the force is going to increase by 50% with each bounce.
Try setting it to 1 to keep the force unchanged.