0 registered members (),
1,397
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
PhysX RagDoll fro AUM92 Problem
#386780
11/09/11 05:21
11/09/11 05:21
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
OP
Serious User
|
OP
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
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):
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:
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
}
Please help me
Last edited by Ch40zzC0d3r; 11/09/11 05:31.
|
|
|
Re: PhysX RagDoll fro AUM92 Problem
[Re: Ch40zzC0d3r]
#386788
11/09/11 10:09
11/09/11 10:09
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
Serious User
|
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
In AUM 100 there is an example of radgolls using PhysX
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: PhysX RagDoll fro AUM92 Problem
[Re: Ch40zzC0d3r]
#386801
11/09/11 12:54
11/09/11 12:54
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
OP
Serious User
|
OP
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
Ive got a problem when I try to use a new model. I created all the bones needed but its not moving Its just stucking at vec 0,0,0. Why this is so?
|
|
|
Re: PhysX RagDoll fro AUM92 Problem
[Re: Ch40zzC0d3r]
#386802
11/09/11 12:55
11/09/11 12:55
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
Serious User
|
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
you need yo use also the same names from the other model for every bone
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: PhysX RagDoll fro AUM92 Problem
[Re: Ch40zzC0d3r]
#386867
11/10/11 05:30
11/10/11 05:30
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
OP
Serious User
|
OP
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
Please if anyone know how to fix the model bug plz help me I fixed it! My bones where f**** up by MED xD
Last edited by Ch40zzC0d3r; 11/10/11 06:19.
|
|
|
|