Do they work?
I'm trying to get ragdolls working with skinned models.
Here is what I have so far (but it doesn't work!):
// 'obj' is the models ID (.x file)
// I use structures for the limbs and the physics objects.
// e.g. 'limb.chest' is the ID of this limb and 'chest.ID' is the ID of the corresponding physics object.
// physics objects are positioned before and are jointed together correctly (they are visible and the ragdoll seems to work)
int r = 1;
int mesh = obj;
dbPhyMakeRagdoll ( r, obj, chest.ID() );
dbMakeMeshFromObject ( mesh, obj );
dbPhyAssignRagdollPart ( r, mesh, limb.chest, chest.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.head, head.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.armL1, armL1.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.armL2, armL2.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.handL, handL.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.armR1, armR1.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.armR2, armR2.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.handR, handR.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.stomach, stomach.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.hips, hips.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.legL1, legL1.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.legL2, legL2.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.footL, footL.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.legR1, legR1.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.legR2, legR2.ID );
dbPhyAssignRagdollPart ( r, mesh, limb.footR, footR.ID );
Am I missing something?
Are there any demos or tutorials on this?
Any help is greatly appreciated!
Now the plot thickens, the fps decreases, and the awesomeness goes through the roof.