Release allocated memory
| 106 | |
| 107 | // Release allocated memory |
| 108 | void ContactSolverSystem::reset() { |
| 109 | |
| 110 | if (mAllContactPoints->size() > 0) mMemoryManager.release(MemoryManager::AllocationType::Frame, mContactPoints, sizeof(ContactPointSolver) * mAllContactPoints->size()); |
| 111 | if (mAllContactManifolds->size() > 0) mMemoryManager.release(MemoryManager::AllocationType::Frame, mContactConstraints, sizeof(ContactManifoldSolver) * mAllContactManifolds->size()); |
| 112 | } |
| 113 | |
| 114 | // Initialize the constraint solver for a given island |
| 115 | void ContactSolverSystem::initializeForIsland(uint32 islandIndex) { |