Originally Posted By: jcl
c_updatehull also sets the bounding box, but to the size of the current collision hull.

Strange, because c_updatehull doesn't work for me, where only the second while loop works:

Code:
#include <default.c>

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

void main() {
	
	d3d_lines = 3; level_load("");
	
	vec_set(camera.x, vector(-88,-157, 47));
	vec_set(camera.pan, vector(60, -17, 0));

	you = ent_create("sf_alien.mdl", nullvector, NULL);
	wait(1);
	
	while (you.skill1 < 20)
	{
	   c_updatehull(you, (you.frame = you.skill1++));
	   wait(-.1);
	}
	
	you.skill1 = 0;
	
	while (you.skill1 < 20)
	{
	   you.frame = you.skill1++;
	   you.eflags |= FAT | NARROW;
	   vec_set(you.min_x, vec_for_min(you.min_x, you));
	   vec_set(you.max_x, vec_for_max(you.max_x, you));
	   wait(-.1);
	}
}





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