summaryrefslogtreecommitdiff
path: root/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-03-06 22:50:15 +0100
committerLéo Lam <leo@leolam.fr>2022-03-07 12:44:38 +0100
commit62959cc554dae3bf2d18f3f7e55788edf343d8e8 (patch)
tree68b89c8ba299c8b9c849a5c9249a8d8135f09ba0 /src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
parent6229e5d41adcf16a87dba7df9b12c5f91871273b (diff)
ksys/phys: Start adding ClosestPointQuery and iterator stuff
Diffstat (limited to 'src/KingSystem/Physics/System/physQueryContactPointInfo.cpp')
-rw-r--r--src/KingSystem/Physics/System/physQueryContactPointInfo.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp b/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
index 9a972ed7..c5098227 100644
--- a/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
+++ b/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
@@ -1,4 +1,5 @@
#include "KingSystem/Physics/System/physQueryContactPointInfo.h"
+#include "KingSystem/Physics/System/physContactMgr.h"
namespace ksys::phys {
@@ -16,4 +17,14 @@ void QueryContactPointInfo::free(QueryContactPointInfo* info) {
QueryContactPointInfo::~QueryContactPointInfo() = default;
+void QueryContactPointInfo::Iterator::getPointPosition(sead::Vector3f* out, Point point) const {
+ out->e = getPoint()->position.e;
+}
+
+sead::Vector3f QueryContactPointInfo::Iterator::getPointPosition(Point point) const {
+ sead::Vector3f pos;
+ getPointPosition(&pos, point);
+ return pos;
+}
+
} // namespace ksys::phys