raycast start

This commit is contained in:
2025-10-04 17:36:47 +01:00
parent a6266a336b
commit 31ba002ac7
5 changed files with 59 additions and 11 deletions

View File

@@ -1,17 +1,16 @@
#if !defined(LD_GAME_AABB_H_)
#define LD_GAME_AABB_H_
#include "types.h"
#include "../core/types.h"
#include "../core/macros.h"
typedef struct AABB AABB;
struct AABB {
struct AABB
{
V2f pos;
V2f size;
};
function bool AABB_Collide(AABB a, AABB b);
function bool AABB_Point(AABB a, V2f v);
#endif // LD_GAME_AABB_H_
function bool AABB_Collide(AABB a, AABB b);
function bool AABB_Point(AABB a, V2f v);
function bool AABB_Slab(V2f origin, V2f point, AABB a);
#endif // LD_GAME_AABB_H_