MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / ~OverlappingPairs

Method ~OverlappingPairs

src/engine/OverlappingPairs.cpp:49–74  ·  view source on GitHub ↗

Destructor

Source from the content-addressed store, hash-verified

47
48// Destructor
49OverlappingPairs::~OverlappingPairs() {
50
51 // Destroy the convex pairs
52 while (mConvexPairs.size() > 0) {
53
54 removeConvexPairWithIndex(mConvexPairs.size() - 1, true);
55 }
56
57 // Destroy the concave pairs
58 while (mConcavePairs.size() > 0) {
59
60 removeConcavePairWithIndex(mConcavePairs.size() - 1, true);
61 }
62
63 // Destroy the disabled convex pairs
64 while (mDisabledConvexPairs.size() > 0) {
65
66 removeDisabledConvexPairWithIndex(mDisabledConvexPairs.size() - 1, true);
67 }
68
69 // Destroy the disabled concave pairs
70 while (mDisabledConcavePairs.size() > 0) {
71
72 removeDisabledConcavePairWithIndex(mDisabledConcavePairs.size() - 1, true);
73 }
74}
75
76// Remove an overlapping pair
77void OverlappingPairs::removePair(uint64 pairId) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected