c_setminmax or c_updatehull doesn't work properly, like code below:

Code:
#include <default.c>

#define PRAGMA_PATH "%EXE_DIR%\templates\models";

void main() {
	
   d3d_lines = 3; level_load("");

   you = ent_create("sf_alien.mdl", vector(250,0,0),0);
	
   c_setminmax(you);

   //wait(1); c_updatehull(you,1);
	
}


but this works:

Code:
#include <default.c>

#define PRAGMA_PATH "%EXE_DIR%\templates\models";

void main() {
	
   d3d_lines = 3; level_load("");

   you = ent_create("sf_alien.mdl", vector(250,0,0),0);
	
   c_setminmax(you);

   //wait(1); c_updatehull(you,1);

   vec_set(you.min_x, vec_for_min(you.min_x, you));
   vec_set(you.max_x, vec_for_max(you.max_x, you));
	
}




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