mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-09 09:00:08 +00:00
remove the 'isActive' test when merging simulation islands for constraints and speculative contacts, it is wrong
This fixes issue 709
This commit is contained in:
parent
c28652de37
commit
126fd06ac6
@ -744,12 +744,7 @@ void btDiscreteDynamicsWorld::calculateSimulationIslands()
|
|||||||
if (((colObj0) && (!(colObj0)->isStaticOrKinematicObject())) &&
|
if (((colObj0) && (!(colObj0)->isStaticOrKinematicObject())) &&
|
||||||
((colObj1) && (!(colObj1)->isStaticOrKinematicObject())))
|
((colObj1) && (!(colObj1)->isStaticOrKinematicObject())))
|
||||||
{
|
{
|
||||||
if (colObj0->isActive() || colObj1->isActive())
|
getSimulationIslandManager()->getUnionFind().unite((colObj0)->getIslandTag(),(colObj1)->getIslandTag());
|
||||||
{
|
|
||||||
|
|
||||||
getSimulationIslandManager()->getUnionFind().unite((colObj0)->getIslandTag(),
|
|
||||||
(colObj1)->getIslandTag());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -768,12 +763,7 @@ void btDiscreteDynamicsWorld::calculateSimulationIslands()
|
|||||||
if (((colObj0) && (!(colObj0)->isStaticOrKinematicObject())) &&
|
if (((colObj0) && (!(colObj0)->isStaticOrKinematicObject())) &&
|
||||||
((colObj1) && (!(colObj1)->isStaticOrKinematicObject())))
|
((colObj1) && (!(colObj1)->isStaticOrKinematicObject())))
|
||||||
{
|
{
|
||||||
if (colObj0->isActive() || colObj1->isActive())
|
getSimulationIslandManager()->getUnionFind().unite((colObj0)->getIslandTag(),(colObj1)->getIslandTag());
|
||||||
{
|
|
||||||
|
|
||||||
getSimulationIslandManager()->getUnionFind().unite((colObj0)->getIslandTag(),
|
|
||||||
(colObj1)->getIslandTag());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user