Body part collisions

mrmo

14-03-2009 00:52:22

Hello everyone,

I'm attempting to create collision for the body's limbs (I want to know where bullets hit on the body, head, arm, leg, ect.), using the zombie in Ogre 3d as my base.. So far I have nothing on the zombie as far as physics go. I've spent time learning the ragdoll physics (in the OgreNewt demo) only to learn that I can't use it for anything but falling and similar things.

How can I add collisions to each body part? I'm not exactly asking for code it self(although it would be helpful :-p) but a direction would be just ok.

ps. I use Python-Ogre but i can read C/C++/C#/VB just fine.

melven

14-03-2009 14:28:12

Use a compound collision and set the id of the collision pieces. In the callback you can get the id of the collision that is currently colliding.

mrmo

14-03-2009 22:36:44

Ah, I see. So compound collision holds multiple collision objects and ignores reporting collision between them?

I guess this is what I exactly need. Thank you.

Also, in order to create collisions for each body part, should I take the ragdoll approach? Use of bones and an xml file to define which bones? Or is there a better way?