feat: collision functions added
This commit is contained in:
17
code/game/aabb.h
Normal file
17
code/game/aabb.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#if !defined(LD_CORE_AABB_H_)
|
||||
#define LD_CORE_AABB_H_
|
||||
#include "types.h"
|
||||
#include "../core/macros.h"
|
||||
|
||||
|
||||
typedef struct AABB 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_CORE_AABB_H_
|
||||
Reference in New Issue
Block a user