///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////
void main() {
video_mode = 11;
fps_max = 60;
level_load(NULL);
camera.x = -100;
player = ent_create(CUBE_MDL,nullvector,NULL);
set(player,POLYGON);
wait(1);
c_setminmax(player);
while(1) {
player.y = 0;
//wait(1); // <------------ !!
c_trace(vector(0,0,32),vector(0,0,-32),IGNORE_PASSABLE);
player.y = 32;
draw_line3d(vector(0,0,32),NULL,100);
if(trace_hit) {
draw_line3d(vector(0,0,32),COLOR_RED,100);
draw_line3d(vector(0,0,-32),COLOR_RED,100);
}
else {
draw_line3d(vector(0,0,32),COLOR_GREEN,100);
draw_line3d(vector(0,0,-32),COLOR_GREEN,100);
}
wait(1);
}
}