From e1d2f0b168ebd698d7a69dbb53fe15cc7fa548aa Mon Sep 17 00:00:00 2001 From: Aetias Date: Sun, 19 Jan 2025 11:58:47 +0100 Subject: Move ov000 documentation from Ghidra --- include/Physics/AABB.hpp | 13 +++++++++++++ include/Physics/Cube.hpp | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 include/Physics/Cube.hpp (limited to 'include/Physics') 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; +}; -- cgit v1.2.3