How to get fixed speed on bodies always

Hi there, i am writing a breakout-like game based upon box2d and having issues with the balls speed.

After an impact with an brick the speed increases too much, so that the game is not playable anymore - Fast robotic reaction is required to hit the paddle with such a fast moving ball 😛 But sometimes its the opposite. The speed after an impact decreases so much that you can drink a good cap of coffee before the ball hits something else.
Of course i set the friction to 0 and the restitution to 1 for all bodies without any damping (except paddle uses has a very high damping to simulate arcade movement) and there are no gravity applied to any of this bodies. The only difference is, that the brick bodies become dynamic bodies when getting hit - therefore there is a dynamic vs dynamic collisions sometimes, which decreases speed correctly - (separate bodies so that they just touch and apply an impulse to resolve lost energy (restitution).

I tried to increase the linear damping for the ball when the balls goes beyond my desired speed and this seems to be fine, but the original speed will never be reached this way and slowing down the ball with damping takes time - mostly more time that my reaction to hit the paddle the ball 😛

Secondly for the slow ball problem, i tried to fix it by applying an additional impulse with the lost speed based on the velocity direction - but these has not work either.

Last thing which happens sometimes, that the ball gets stuck (this is because of the slow speed) on an edge or something, or that the ball moves in an 90 degree which is not so great when bouncing horizontally.

My overall goal is that the ball moves with the nearly exactly same speed always, even after an impact. Is that even possible?

Greetings Torsten
Unfortunately Box2D is not very good for breakout style games. I think you will have to just SetLinearVelocity directly after each collision to keep the speed you want.

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