How to prevent a character's animation from clipping through objects

If the object (or part of the character) clipping is finite, you might consider adapting the method detailed in the following post: