summaryrefslogtreecommitdiff
path: root/include/Physics
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2025-01-19 11:58:47 +0100
committerAetias <aetias@outlook.com>2025-01-19 11:58:47 +0100
commite1d2f0b168ebd698d7a69dbb53fe15cc7fa548aa (patch)
tree39ed851e8cb3ff62d0293454dd37a8bc3a56ce38 /include/Physics
parent4c60dda140335d6322411c6ef62a2dc0b85a3018 (diff)
Move ov000 documentation from Ghidra
Diffstat (limited to 'include/Physics')
-rw-r--r--include/Physics/AABB.hpp13
-rw-r--r--include/Physics/Cube.hpp11
2 files changed, 24 insertions, 0 deletions
diff --git a/include/Physics/AABB.hpp b/include/Physics/AABB.hpp
index 19ce9f38..25a7f34b 100644
--- a/include/Physics/AABB.hpp
+++ b/include/Physics/AABB.hpp
@@ -5,10 +5,23 @@
#include "nds/math.h"
+#include "Physics/Cube.hpp"
+
struct AABB {
Vec3p min;
Vec3p max;
+ bool func_ov000_0208e680();
+ void GetCenter(Vec3p *center);
+ q20 GetSizeX();
+ q20 GetSizeZ();
+ q20 GetSizeY();
bool Contains(Vec3p *vec);
bool ContainsInXZ(Vec3p *vec);
+ bool ContainsInXY(Vec3p *vec);
+ bool IntersectsCube(Cube *cube);
+ bool func_ov000_0208e87c(Cube *cube, Vec3p *vec, u32 *out);
+ void GrowToPoint(Vec3p *point);
+ void Grow(Vec3p *dimensions);
+ void GrowScalar(q20 amount);
};
diff --git a/include/Physics/Cube.hpp b/include/Physics/Cube.hpp
new file mode 100644
index 00000000..b16ac97f
--- /dev/null
+++ b/include/Physics/Cube.hpp
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "global.h"
+#include "types.h"
+
+#include "nds/math.h"
+
+struct Cube {
+ Vec3p center;
+ q20 size;
+};