Quote:
You can immediately update collision hull (without polygon flag) by model position.

How do I do that?

EDIT: This should prove all my points:

Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////


void main()
{
	fps_max = 60;
	level_load(NULL);
	player = ent_create(CUBE_MDL,vector(100,50,0),NULL);
	while(1)
	{
		if(key_space) c_move(player,nullvector,vector(0,-100,0),IGNORE_PASSABLE | IGNORE_WORLD | IGNORE_MODELS);
		else player.y = -50;
		c_trace(vector(0,-50,0),vector(200,-50,0),IGNORE_PASSABLE | USE_POLYGON); 
		if(trace_hit) beep();
		if(key_space) c_move(player,nullvector,vector(0,100,0),IGNORE_PASSABLE | IGNORE_WORLD | IGNORE_MODELS);
		else player.y = 50;
		wait(1);
	}
}



Last edited by Superku; 04/20/12 12:02.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends