Hey guys Its me again I downloaded the AUM92 to get a view of basic ragdoll physics. I opened all the code files and saw it was made with A7 (old ODE physics). So I converted to physX. Now my player falls down but the body isnt join correctly. All body-pieces fall on the floor without any ragdoll. I believe this code is the bad code. (Im coding just lite-c btw):
Code:
void RD_setHinge(ENTITY* constr_1, ENTITY* constr_2) {
var tempHinge;
// make constraint
tempHinge = pXcon_add(PH_HINGE, constr_1, constr_2, 0); // attach to bodypart
pXcon_setparams1(tempHinge, constr_1.x, RD_Hinge1, nullvector); // set hinge limits
pXcon_setparams2(tempHinge, RD_Hinge2, nullvector, nullvector); // same
}
And the original code:
Code:
void RD_setHinge(ENTITY* constr_1, ENTITY* constr_2) {
var tempHinge;
// make constraint
tempHinge = phcon_add(PH_HINGE, constr_1, constr_2); // attach to bodypart
phcon_setparams1(tempHinge, constr_1.x, RD_Hinge1, nullvector); // set hinge limits
phcon_setparams2(tempHinge, RD_Hinge2, nullvector, nullvector); // same
}