diff options
Diffstat (limited to 'src/KingSystem/Physics/System/physQueryContactPointInfo.cpp')
| -rw-r--r-- | src/KingSystem/Physics/System/physQueryContactPointInfo.cpp | 19 |
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 |
