ksys/phys: Add more StaticCompound stuff, part 1

This commit is contained in:
Léo Lam
2022-03-21 23:51:40 +01:00
parent 7ca13b5938
commit c97cf995ef
8 changed files with 191 additions and 18 deletions
@@ -0,0 +1,22 @@
#include "KingSystem/Physics/StaticCompound/physStaticCompoundMgr.h"
#include "KingSystem/Physics/System/physSystem.h"
namespace ksys::phys {
StaticCompoundMgr::StaticCompoundMgr() = default;
StaticCompoundMgr::~StaticCompoundMgr() {
if (mGroupHandler) {
System::instance()->removeSystemGroupHandler(mGroupHandler);
mGroupHandler = nullptr;
}
}
bool StaticCompoundMgr::init() {
if (!mGroupHandler)
mGroupHandler = System::instance()->addSystemGroupHandler(ContactLayerType::Entity);
return true;
}
} // namespace ksys::phys