Skip to content

Commit

Permalink
Merge pull request bulletphysics#4444 from littlemine/patch-1
Browse files Browse the repository at this point in the history
fix child transforms of a compound
  • Loading branch information
erwincoumans authored May 4, 2023
2 parents e7193f8 + d9a4a7e commit 39b8de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ExtendedTutorials/CompoundBoxes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void CompoundBoxesExample::initPhysics()
#else
// recompute the shift to make sure the compound shape is re-aligned
for (int i = 0; i < compoundShape->getNumChildShapes(); i++)
compound2->addChildShape(compoundShape->getChildTransform(i) * principal.inverse(),
compound2->addChildShape(principal.inverse() * compoundShape->getChildTransform(i),
compoundShape->getChildShape(i));
#endif
delete compoundShape;
Expand Down

0 comments on commit 39b8de7

Please sign in to comment.