Revision 1047
Draws polygons in the environment.
world.c | ||
---|---|---|
24 | 24 |
world.objs = calloc(max_objs, sizeof(object_t)); |
25 | 25 |
world.win = b; |
26 | 26 |
/* Add a polygon surrounding the world */ |
27 |
create(ID_POLY,4,POLY_CONNECTED,pts); |
|
27 |
// this devours the world - brian |
|
28 |
//create(ID_POLY,4,POLY_CONNECTED,pts); |
|
28 | 29 |
} |
29 | 30 |
int destroy_world() |
30 | 31 |
{ |
... | ... | |
245 | 246 |
{ |
246 | 247 |
rf.d = rf_thetas[ir]; |
247 | 248 |
x = collide_world(&rf); |
248 |
printf("[%d] = %g\n", ir, x); |
|
249 |
//printf("[%d] = %g\n", ir, x);
|
|
249 | 250 |
bot->shared->ranges.d[ir] = x; |
250 | 251 |
} |
251 | 252 |
} |
Also available in: Unified diff