From 62959cc554dae3bf2d18f3f7e55788edf343d8e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 6 Mar 2022 22:50:15 +0100 Subject: ksys/phys: Start adding ClosestPointQuery and iterator stuff --- src/KingSystem/Physics/System/physQueryContactPointInfo.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/KingSystem/Physics/System/physQueryContactPointInfo.cpp') 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 -- cgit v1.2.3