Making a ball keep a const velocity with a non-zero friction

in some "bricks breakout" game , the paddle could give the ball some friction to help change the moving direction of the ball.

but when i try this, if there is friction on the ball, it makes the ball flies slower, and finally stops...

moreover, checking and setting the velocity in a tick function is so ugly a way.

do you know how to keep the velocity of the ball while not setting the friction to zero?
No, I think you have to do it the 'ugly' way :~)
What is ugly about setting velocity manually in your custom update routines? You set all the new velocities, and then you get collision events and results that take their momentum into account. This is a much more flexible setup than pure kinematic objects, which is what you'd have to use instead.

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