Files
botw/src/KingSystem/ActorSystem/actPhysicsConstraints.cpp
T
2021-10-16 16:40:15 +02:00

25 lines
524 B
C++

#include "KingSystem/ActorSystem/actPhysicsConstraints.h"
#include "KingSystem/Physics/System/physConstraint.h"
namespace ksys::act {
PhysicsConstraints::PhysicsConstraints() = default;
PhysicsConstraints::~PhysicsConstraints() {
finalize();
}
void PhysicsConstraints::finalize() {
for (auto*& cs : mConstraints) {
if (cs) {
phys::Constraint::destroy(cs);
cs = nullptr;
}
}
mConstraints.freeBuffer();
_10 = false;
_11 = false;
}
} // namespace ksys::act