fix 2 entities together

Posted By: gameplan

fix 2 entities together - 08/18/12 18:09

Hi,

I need to glue 2 physx-entities together (while the game is running), that they cant move relative to each other, but I can not find any phyx-code that is doning this. I tried to add a constrait, and locked all DOF, but both entities are still moveing different. They dont seem really connected.

Does anyone have an idea?

thanks
Posted By: bpc31

Re: fix 2 entities together - 08/19/12 14:26

A8 has pXent_addshape.

In your player action you can do something like:

ENTITY* player_cowling = ent_create("cowling.mdl", nullvector, NULL);
ENTITY* player_cockpit = ent_create("cockpit.mdl", nullvector, NULL);
pXent_addshape(my, player_cowling, PH_BOX);
pXent_addshape(my, player_cockpit, PH_BOX);
© 2024 lite-C Forums