root / branches / simulator / projects / simulator / simulator / core / world.c @ 1022
History | View | Annotate | Download (420 Bytes)
1 | 1022 | bpoole | /**
|
---|---|---|---|
2 | * @file world.c
|
||
3 | * @author Colony Project
|
||
4 | * @brief Simulator world code
|
||
5 | *
|
||
6 | * This is the world.
|
||
7 | **/
|
||
8 | |||
9 | #include <stdio.h> |
||
10 | #include "world.h" |
||
11 | |||
12 | |||
13 | double collide_circle(ray_t *ray, object_t *obj){
|
||
14 | return -1; |
||
15 | } |
||
16 | double collide_rect(ray_t *ray, object_t *obj){
|
||
17 | return -2; |
||
18 | } |
||
19 | |||
20 | double collide(ray_t *ray, object_t *obj) {
|
||
21 | if (ray == NULL || obj == NULL) |
||
22 | return -1; |
||
23 | return collide_func[obj->id](ray, obj);
|
||
24 | } |