update helpers/location to 'frosted' ui
[carveJwlIkooP6JGAAIwe30JlM.git] / world_physics.h
1 #pragma once
2 #include "world.h"
3 #include "vg/vg_rigidbody.h"
4 #include "vg/vg_rigidbody_collision.h"
5 #include "vg/vg_bvh.h"
6
7 void ray_world_get_tri( world_instance *world,
8 ray_hit *hit, v3f tri[3] );
9
10 int ray_world( world_instance *world,
11 v3f pos, v3f dir, ray_hit *hit, u16 ignore );
12
13 int spherecast_world( world_instance *world,
14 v3f pa, v3f pb, float r, float *t, v3f n,
15 u16 ignore );
16
17 struct world_surface *world_tri_index_surface( world_instance *world,
18 u32 index );
19
20 struct world_surface *world_contact_surface( world_instance *world,
21 rb_ct *ct );
22
23 struct world_surface *ray_hit_surface( world_instance *world,
24 ray_hit *hit );