code inertia into character controller?

Hello, I’m currently using a character controller for my 3d platformer’s character and recently noticed that my character velocity does not get set to zero when running into walls, only continuing their movement once the collider that they’re on is out of their way. Is there a way to program my character’s velocity to reset when hitting walls, or do I have to use rigid bodies?