Here is how I do it:
Code:
// Create shapes:
ENTITY* shape1 = ent_create("shape1.mdl",0,0);
vec_set(shape1.x,my.x);
vec_add(shape1.x,vector(70,0,-50));

ENTITY* shape2 = ent_create("shape2.mdl",0,0);
vec_set(shape2.x,my.x);
vec_add(shape2.x,vector(-70,0,-110));

// Initialize physX properties:
pXent_settype(my,PH_RIGID,PH_BOX);
// Attach shapes:
pXent_addshape(my,shape1,PH_BOX);
pXent_addshape(my,shape2,PH_BOX);
pXent_removeshape(my,0);




Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung