ksys/phys: Move Constraint stuff to a separate folder

This commit is contained in:
Léo Lam 2022-03-06 22:38:33 +01:00
parent a1f9eea300
commit 6229e5d41a
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
4 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
#include "KingSystem/ActorSystem/actPhysicsConstraints.h"
#include "KingSystem/Physics/System/physConstraint.h"
#include "KingSystem/Physics/Constraint/physConstraint.h"
namespace ksys::act {

View File

@ -4,6 +4,9 @@ target_sources(uking PRIVATE
Cloth/physClothResource.cpp
Cloth/physClothResource.h
Constraint/physConstraint.cpp
Constraint/physConstraint.h
Ragdoll/physRagdollConfig.cpp
Ragdoll/physRagdollConfig.h
Ragdoll/physRagdollControllerKeyList.h
@ -102,8 +105,6 @@ target_sources(uking PRIVATE
System/physCharacterControllerParam.h
System/physCollisionInfo.cpp
System/physCollisionInfo.h
System/physConstraint.cpp
System/physConstraint.h
System/physContactInfoParam.cpp
System/physContactInfoParam.h
System/physContactLayerCollisionInfo.cpp

View File

@ -1,9 +1,8 @@
#include "KingSystem/Physics/System/physConstraint.h"
#include "KingSystem/Physics/Constraint//physConstraint.h"
namespace ksys::phys {
void Constraint::destroy(Constraint* instance) {
if (instance)
delete instance;
}