Objects bounce from gravity, but restitution is zero

Hello,

My problem is that i have a Tetris-Like Game, but when the Blocks are falling down one after another they start to bounce after 2-3 Blocks (in height), because of the impact from the gravity. The restitution is set to 0 and they are all dynamicBody-types. How do I remove this effect? If i would clear out the Y-Velocity at Collision it would look awkward, if only half of the block would collide with another one, because it would stop and then it would start to fall again due to gravity. Any solutions? Thank you,

dingoglotz
Smaller timesteps will cause Box2D to have less error in the velocity part of the contact constraints. The error (or that bounceback you are seeing) is big because your timesteps are too big for the speed that the blocks are falling when they collide with everything else.
Thanks for your answer, but isn't there another method to get rid of that problem? If i change the timestep the blocks are falling slower/faster and that just looks, well, like shit :/
For information: The timestep is set to dt which is the parameter of the schedule-method. When I call the method I write nothing behind the ":" after the methodname, so I don't know what value it has (yes I am a noob :s). The gravity is -1.0f, the density of the blocks is about 10 and the blocks size range from 16*16 to 64*48. They fall about half the size of the screen.
Unless you change the blocks to be static/kinematic bodies, there will always be some movement. You could improve it somewhat by making blocks at the bottom of the pile significantly heavier than those at the top, if you were prepared to program in some dynamic density-changing.
Thanks, setting the density of the already fallen blocks higher helps a bit, it's fine now 🙂

Original thread: https://box2d.org/forum/viewtopic.php?t=8806