Playing with (rag) dolls

Up to this point we have simply removed enemies from the game when they have taken damage from our weapons. However, we want the enemies to respond realistically to damage from weapons based on the physics properties of the damage. In particular, when a grenade impacts an enemy, the force of the blast – something that is not currently simulated at all, should toss them around.

To accomplish this we will use Unity's Rag Doll system and assign it to our target dummies, so that when they take damage, physics will drive their motion.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.186.244