2d Character fall from map when it jump on the other character

When player jump on the such caracter, it falls from tilemap or the textures disappear. I trust to lock y position of colliding capsule, but it doesnt works, pls help me

i am guessing, character’s y value changed after the collision. Set movement locked to X-Z plane.

I try lock Z-X plane on capsule component, but it doesnt work

try locking Y or X position

omg, I’ve finaly solved that problem. I made a function that assigns my character every tick y=0.