add network view for glider
[carveJwlIkooP6JGAAIwe30JlM.git] / world_physics.h
1 #ifndef WORLD_PHYSICS_H
2 #define WORLD_PHYSICS_H
3
4 #include "world.h"
5 #include "vg/vg_rigidbody.h"
6 #include "vg/vg_rigidbody_collision.h"
7
8 static void ray_world_get_tri( world_instance *world,
9 ray_hit *hit, v3f tri[3] );
10
11 static int ray_world( world_instance *world,
12 v3f pos, v3f dir, ray_hit *hit, u16 ignore );
13
14 static int spherecast_world( world_instance *world,
15 v3f pa, v3f pb, float r, float *t, v3f n,
16 u16 ignore );
17
18 static struct world_surface *world_tri_index_surface( world_instance *world,
19 u32 index );
20
21 static struct world_surface *world_contact_surface( world_instance *world,
22 rb_ct *ct );
23
24 static struct world_surface *ray_hit_surface( world_instance *world,
25 ray_hit *hit );
26
27 #endif /* WORLD_PHYSICS_H */