contact cluster return number of iterations

This commit is contained in:
Irlan
2018-04-20 03:08:21 -03:00
parent ffed35d10a
commit 231b9c29d0
2 changed files with 13 additions and 1 deletions

View File

@@ -201,7 +201,7 @@ void b3ReducePolygon(b3ClusterPolygon& pOut,
b3ClusterSolver::b3ClusterSolver()
{
m_iterations = 0;
}
b3ClusterSolver::~b3ClusterSolver()
@@ -443,6 +443,8 @@ void b3ClusterSolver::Solve()
++iter;
}
m_iterations = iter;
// Remove empty clusters
b3StackArray<b3Cluster, 32> usedClusters;