diff options
| author | Léo Lam <leo@leolam.fr> | 2022-03-06 22:50:15 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-03-07 12:44:38 +0100 |
| commit | 62959cc554dae3bf2d18f3f7e55788edf343d8e8 (patch) | |
| tree | 68b89c8ba299c8b9c849a5c9249a8d8135f09ba0 /src/KingSystem/Physics/System/physQueryContactPointInfo.cpp | |
| parent | 6229e5d41adcf16a87dba7df9b12c5f91871273b (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.cpp | 11 |
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 |
