I'm not sure if i'm not shutting something down properly, but I am getting a small amount of memory unallocated after a run.
The constructor: -
Code: Select all
btConvexConvexAlgorithm::CreateFunc::CreateFunc()
{
m_ownsSolvers = true;
m_simplexSolver = new btVoronoiSimplexSolver();
m_pdSolver = new btGjkEpaPenetrationDepthSolver;
}
There is no destructor, so I created one: -
Code: Select all
btConvexConvexAlgorithm::CreateFunc::~CreateFunc()
{
if (m_ownsSolvers){
delete m_simplexSolver;
delete m_pdSolver;
}
}
All the best,
Ash