summaryrefslogtreecommitdiff
path: root/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/KingSystem/Physics/System/physQueryContactPointInfo.cpp')
-rw-r--r--src/KingSystem/Physics/System/physQueryContactPointInfo.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp b/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
new file mode 100644
index 00000000..9a972ed7
--- /dev/null
+++ b/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
@@ -0,0 +1,19 @@
+#include "KingSystem/Physics/System/physQueryContactPointInfo.h"
+
+namespace ksys::phys {
+
+QueryContactPointInfo* QueryContactPointInfo::make(sead::Heap* heap, int num_points,
+ const sead::SafeString& name, int a, int b) {
+ auto* info = new (heap) QueryContactPointInfo(name, a, b, 0);
+ info->allocPoints(heap, num_points);
+ return info;
+}
+
+void QueryContactPointInfo::free(QueryContactPointInfo* info) {
+ info->freePoints();
+ delete info;
+}
+
+QueryContactPointInfo::~QueryContactPointInfo() = default;
+
+} // namespace ksys::phys