I am creating a melee game, 1vs1 mode. When the player has <= 0 health, he gets disabled and a death animation gets played. But the problem is: If my player jumps, then gets a deadly hit, he dies floating above the ground. I tried many things, such as groundcheck or checking the rigid.velocity before playing the death animation, but all the things did not work. I hope you can help me.
![alt text][1]
[1]: /storage/temp/198267-screenshot-2true.png
↧