MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / deleteCollisionShape

Method deleteCollisionShape

src/physics/PhysicsSystem.cpp:222–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void PhysicsSystem::deleteCollisionShape(Handle::CollisionShapeHandle shape)
223{
224 // Remove from convex-cache
225 for (auto& c : m_ShapeCache)
226 {
227 if (c.second == shape)
228 {
229 m_ShapeCache.erase(c.first);
230 break;
231 }
232 }
233}
234
235Handle::CollisionShapeHandle PhysicsSystem::makeBoxCollisionShape(const Math::float3& halfExtends)
236{

Callers

nothing calls this directly

Calls 1

eraseMethod · 0.80

Tested by

no test coverage detected