Saturday, July 14, 2007

Ragdolls!

I’ve added ragdolls to the game. When a soldier is killed a ragdoll is loaded. The soldier’s body then behaves just like a normal dead body would. It can slump to the ground, fall off buildings or get thrown through the air by explosions.

It wasn’t easy getting the ragdolls to work properly. First i had to create a simplified skeleton from the normal skeleton. Just using the normal skeleton would have been too much for the physics engine. Then i had to attach the bones from the complex skeleton to the simple one. After that i had to create all the joints and hook up the skeleton properly. It took me a long time to get all the joints working and to get the skeleton proportioned correctly. I think it looks pretty good now. Check out the videos…