Originally Posted By: 3run
...but I can't move shapes positions, they always created at the my origin.

You mean the whole truck or just specific shape?

Originally Posted By: 3run
... And I would like to ask you about removing shapes ...

Try with ent_remove function like code below, but warn_level should be commented in or you get continuously an Error E1514 message!

Code:
// Initialize physX properties:
pXent_settype(my,PH_RIGID,PH_CONVEX);
	
ENTITY* shape1 = ent_create("shape1.mdl",0,0);
ENTITY* shape2 = ent_create("shape2.mdl",0,0);
	
vec_set(shape1.x, my.x); vec_add(shape1.x,vector(95,0,1.5));
vec_set(shape2.x, my.x); vec_add(shape2.x,vector(-34.7,0,-25.5));
	
pXent_addshape(my, shape1, PH_BOX); ent_remove(shape1); // warn_level should be commented in or you get continuously an Error E1514 message!
pXent_addshape(my, shape2, PH_BOX); ent_remove(shape2); 

pXent_removeshape(my, 0);
//pXent_setcollisionflag(my,NULL,NX_NOTIFY_ON_START_TOUCH);


Originally Posted By: 3run
...And isn't it better to use PH_MODIFIED for my entity?

Yes, in combination with PH_POLY or PH_CONVEX hull, but I had omitted it because the original shape hull was removed.

Originally Posted By: 3run
...will my entity still have that modified hull?

Yes, like screenshot below.




Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P