MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / reset

Method reset

src/systems/ContactSolverSystem.cpp:108–112  ·  view source on GitHub ↗

Release allocated memory

Source from the content-addressed store, hash-verified

106
107// Release allocated memory
108void 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
115void ContactSolverSystem::initializeForIsland(uint32 islandIndex) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected