So I have a robot enemy and when I shoot It with my pistol I want the game object that got shot to fall off and act as a ragdoll (kinda like in Danis Karlson game). I tried putting a script on every body part of the game object that unparents but it doesn't unparent. So my model looks exactly like Danis robot model for the game Karlson (not expecting anyone to know what that is but just in case) and when I shoot it with a bullet (not raycasted using addforce) and all its health runs out the last body part that was shot falls off. The model has bones and is using a navmeshagent and has a walking and idle animation. I am going to try to add a muti aim constraint. https://www.youtube.com/watch?v=yqmiuPF9YEU&t=161s This is the devlog of Karlson where he makes the robot and also you will see at 2:22 in the video his body parts fall off when out of health. Animations were made in unity.
Thanks any help appreciated.
↧