SetLinearVelocity and Collision

Hey there ! I'm having another problem (Yeah I'm having a lot of them since I'm working on 3 projets)

I'm moving a body with SetLinearVelocity (Since I want the movement to be incredibly tight I couldn't use Impulse or Force) and I'm having a problem.. since I gradualy add to the velocity based on acceleration (or the inverse with deceleration) when I hit a wall and continu to push the Velocity continue to build up and if I want to get away from that wall it's a pain since I have to decelerate all the way to zero and then start to build up my acceleration.

What I would like to do is having a way to put my velocity to Zero when I'm hitting a wall but still being able to get away from hit. But since I'm putting the velocity to Zero and im still touching the wall there's now way to get away. I just can't find a way to do that.

I tried to add a Velocity inverse to the one applied right before the impact, that gave me a bouncing effect wich was kind of a neat way to get the player away from the walls. But now the game changed with a features that isn't penalizing if the player is touching a wall.

Thanks !

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