Actually this is not a bug, but i think this part of code:
can be safely replaced with:
Code:
// Does the TOI island still have space for contacts?
if (island.m_contactCount == island.m_contactCapacity)
{
continue;
}
if (island.m_contactCount == island.m_contactCapacity)
{
continue;
}
can be safely replaced with:
Code:
// Does the TOI island still have space for contacts?
if (island.m_contactCount == island.m_contactCapacity)
{
break;
}
if (island.m_contactCount == island.m_contactCapacity)
{
break;
}