Skip to content

Commit

Permalink
Fix for older bullet versions (e.g. on Ubuntu Focal)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen committed May 31, 2024
1 parent 3fcc2a1 commit 693240f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,12 @@ struct TesseractCompoundLeafCallback : btDbvt::ICollide
if (TestAabbAgainstAabb2(aabbMin0, aabbMax0, aabbMin1, aabbMax1))
{
btTransform preTransform = childTrans;
#if BT_BULLET_VERSION >= 300
if (this->m_compoundColObjWrap->m_preTransform != nullptr)
{
preTransform = preTransform * (*(this->m_compoundColObjWrap->m_preTransform));
}
#endif
btCollisionObjectWrapper compoundWrap(this->m_compoundColObjWrap,
childShape,
m_compoundColObjWrap->getCollisionObject(),
Expand Down

0 comments on commit 693240f

Please sign in to comment.