On line 178 in b2DynamicTree.cpp, the insertion count is incremented (as part of insertLeaf ,though this method is also called by moveProxy and a few others). Further, it is not decremented on removal.
I would suggest that m_insertionCount should be incremented in createProxy; decremented in DestroyProxy and removed from line 178.
Hi,
On line 178 in b2DynamicTree.cpp, the insertion count is incremented (as part of insertLeaf ,though this method is also called by moveProxy and a few others). Further, it is not decremented on removal.
I would suggest that m_insertionCount should be incremented in createProxy; decremented in DestroyProxy and removed from line 178.