From b513fbbf03dddaaf9084dd8358a656380f73c3d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 27 Dec 2021 21:56:20 +0100 Subject: ksys/phys: Start adding RigidContactPoints Super messy stuff. I have no idea what it's used for --- src/KingSystem/Physics/System/physMemSystem.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/KingSystem/Physics/System/physMemSystem.cpp') diff --git a/src/KingSystem/Physics/System/physMemSystem.cpp b/src/KingSystem/Physics/System/physMemSystem.cpp index e69de29b..a8193a33 100644 --- a/src/KingSystem/Physics/System/physMemSystem.cpp +++ b/src/KingSystem/Physics/System/physMemSystem.cpp @@ -0,0 +1,22 @@ +#include "KingSystem/Physics/System/physMemSystem.h" +#include "KingSystem/Physics/System/physContactMgr.h" + +namespace ksys::phys { + +SEAD_SINGLETON_DISPOSER_IMPL(MemSystem) + +RigidContactPoints* MemSystem::allocContactPoints(sead::Heap* heap, int num, + const sead::SafeString& name, int a, int b, + int c) const { + return mContactMgr->allocContactPoints(heap, num, name, a, b, c); +} + +void MemSystem::freeContactPoints(RigidContactPoints* points) const { + mContactMgr->freeContactPoints(points); +} + +void MemSystem::registerContactPoints(RigidContactPoints* points) const { + mContactMgr->registerContactPoints(points); +} + +} // namespace ksys::phys -- cgit v1.2.3