X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_physics.h;h=ce65e5b29d442794ee603abc7ec40842bb0dce83;hb=5f6a4f9df6c8accc89f1920bfe9ace3cbac4c4b6;hp=8531b8f1b14f0cc4ff1df6fca94b79c6caf8f575;hpb=a109f126d8adab622e38fbcc2d4281e75255246a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_physics.h b/world_physics.h index 8531b8f..ce65e5b 100644 --- a/world_physics.h +++ b/world_physics.h @@ -1,27 +1,23 @@ -#ifndef WORLD_PHYSICS_H -#define WORLD_PHYSICS_H - +#pragma once #include "world.h" #include "vg/vg_rigidbody.h" #include "vg/vg_rigidbody_collision.h" -static void ray_world_get_tri( world_instance *world, - ray_hit *hit, v3f tri[3] ); +void ray_world_get_tri( world_instance *world, + ray_hit *hit, v3f tri[3] ); -static int ray_world( world_instance *world, - v3f pos, v3f dir, ray_hit *hit, u16 ignore ); +int ray_world( world_instance *world, + v3f pos, v3f dir, ray_hit *hit, u16 ignore ); -static int spherecast_world( world_instance *world, - v3f pa, v3f pb, float r, float *t, v3f n, - u16 ignore ); +int spherecast_world( world_instance *world, + v3f pa, v3f pb, float r, float *t, v3f n, + u16 ignore ); -static struct world_surface *world_tri_index_surface( world_instance *world, - u32 index ); +struct world_surface *world_tri_index_surface( world_instance *world, + u32 index ); -static struct world_surface *world_contact_surface( world_instance *world, - rb_ct *ct ); +struct world_surface *world_contact_surface( world_instance *world, + rb_ct *ct ); -static struct world_surface *ray_hit_surface( world_instance *world, +struct world_surface *ray_hit_surface( world_instance *world, ray_hit *hit ); - -#endif /* WORLD_PHYSICS_H */