How to make the character's velocity unchanged when it collides with an physics object?

Hello, for example when the character jumps and collides the object with physics, the character is getting away on X and Y axes while I just jumped without moving my character on XY. Any idea?
Thanks for helping.