Skip to content

Commit

Permalink
fix child transforms of a compound
Browse files Browse the repository at this point in the history
  • Loading branch information
littlemine committed Apr 11, 2023
1 parent 0e59474 commit d9a4a7e
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 d9a4a7e

Please sign in to comment.