Constraining movement/physics for the Y-axis?

Hi! In my 2D game, I’d like to constrain actors on the Y-Axis. I have achieved this by going into the actor’s settings and using the “Locked Axis”, but this doesn’t seem to do the . In my game, if a player slashes an enemy, for example, there’s a bit of an impulse that seems to send the enemy back in the Y-axis sometimes. Is there any way to constrain this as well?

under the character movement component defaults i found planar movement, constrain to plane. try that