Character clipping through wall during death animation

Also, if you wanted your characters to bounce off of walls you could:
Get the distance between the hit location of the ray trace and the player and have an animation of the character bouncing off of the air after a certain distance. You would only need like one extra animation I bet it would look cool and retro, especially if it’s not entirely accurate.