How can I modify 2D Character collision to match FlipBook Animation?

I’m looking for this answer as well. Its probably like setting something that transforms the capsule component if the action is happening. Like if isSliding is true, then scale capsule to 50% and transform down some units. But i haven’t found a tutorial or documentation on how to do it yet.