Character clipping through wall during death animation

That sounds like a good idea, however, I would like the character to fall forward and be pushed back if there is a wall in front similar to older games but I can only come up with messy solutions…