How to avoid ai hands or any body part going inside wall or ground?

Whenever my character get killed near wall his hands or any body part its goes through the wall making it look like half of the hands front of wall and another half through back. but i dont like it… i want it look like modern game where if i killed him near wall it should be realistic where his body part should change posistion according to it. like lifiting his hand because he cant put his hands through wall and also i made a little mistake in my death animation making the hands below the ground so whenever he get killed his hands go through ground… so how to make this work?

You could use IK to prevent this (there’s an example in the Content Examples package), though I guess it would be a little overkill…

A funny problem but the character collision mesh needs to detect objects collision mesh and not go through them.