X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_physics.h;h=6cc8c5df8dfad82512535504541fa425fcbae0a8;hb=78cc452a8343821ba47c0905d755657847dafd25;hp=3e7e5951937c59ceeeba834c602b4289986c14f7;hpb=342fcbf6fda017bdd38d56ce0fa7c9e59e589f3b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_physics.h b/world_physics.h index 3e7e595..6cc8c5d 100644 --- a/world_physics.h +++ b/world_physics.h @@ -2,23 +2,25 @@ #define WORLD_PHYSICS_H #include "world.h" +#include "rigidbody.h" -VG_STATIC void ray_world_get_tri( world_instance *world, +static void ray_world_get_tri( world_instance *world, ray_hit *hit, v3f tri[3] ); -VG_STATIC int ray_world( world_instance *world, - v3f pos, v3f dir, ray_hit *hit ); +static int ray_world( world_instance *world, + v3f pos, v3f dir, ray_hit *hit, u16 ignore ); -VG_STATIC int spherecast_world( world_instance *world, - v3f pa, v3f pb, float r, float *t, v3f n ); +static int spherecast_world( world_instance *world, + v3f pa, v3f pb, float r, float *t, v3f n, + u16 ignore ); -VG_STATIC struct world_surface *world_tri_index_surface( world_instance *world, +static struct world_surface *world_tri_index_surface( world_instance *world, u32 index ); -VG_STATIC struct world_surface *world_contact_surface( world_instance *world, +static struct world_surface *world_contact_surface( world_instance *world, rb_ct *ct ); -VG_STATIC struct world_surface *ray_hit_surface( world_instance *world, +static struct world_surface *ray_hit_surface( world_instance *world, ray_hit *hit ); #endif /* WORLD_PHYSICS_H */