using rigidbodies for platforming having issues

so for my 2d platformer I control the characters movement with rb.velocity, and when Im walking into a wall, it sets my y velocity to 0, any possible solutions?

What’s happening is that by default the Wall has friction, and by walking into it, the friction stops you moving. Create a PhysicsMaterial2D in the Project Files, Set it’s friction to 0 then drag it onto the RigidBody2D component of either the Player or the Wall. As long as one of them is frictionless, they won’t affect the player momentum.

alt text
alt text