Originally Posted By: jcl
This is not a bug - use c_updatehull when you need to update the collision hull.


If I need use c_updatehull, how does trace hit the target in below code? (without c_updatehull or c_move)

Code:
function main()
{
	level_load("small.hmp"); 
	vec_set(camera.x,nullvector);
	vec_set(camera.pan,nullvector);
	ENTITY* target_ent = ent_create("earth.mdl", vector(0,0,1000), NULL);

	wait(-2);
	vec_set(target_ent.x,vector(100,0,0));

	//if target position bigger than 982, it works.
	c_trace(camera.x,vector(990,0,0),IGNORE_PASSABLE); 
	if (HIT_TARGET)
	{
		if(you==target_ent){beep();}
	}
}