botw/src/KingSystem/ActorSystem/actPhysicsConstraints.cpp

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