the luxuries of a modern C compiler
[carveJwlIkooP6JGAAIwe30JlM.git] / world_physics.h
1 #ifndef WORLD_PHYSICS_H
2 #define WORLD_PHYSICS_H
3
4 #include "world.h"
5
6 VG_STATIC void ray_world_get_tri( world_instance *world,
7 ray_hit *hit, v3f tri[3] );
8
9 VG_STATIC int ray_world( world_instance *world,
10 v3f pos, v3f dir, ray_hit *hit );
11
12 VG_STATIC int spherecast_world( world_instance *world,
13 v3f pa, v3f pb, float r, float *t, v3f n );
14
15 VG_STATIC struct world_surface *world_tri_index_surface( world_instance *world,
16 u32 index );
17
18 VG_STATIC struct world_surface *world_contact_surface( world_instance *world,
19 rb_ct *ct );
20
21 VG_STATIC struct world_surface *ray_hit_surface( world_instance *world,
22 ray_hit *hit );
23
24 #endif /* WORLD_PHYSICS_H */