summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerwincoumans <erwin.coumans@gmail.com>2023-05-04 06:10:06 -0700
committerGitHub <noreply@github.com>2023-05-04 06:10:06 -0700
commit39b8de74df93721add193e5b3d9ebee579faebf8 (patch)
treeebca2274074e66ed7af6d81644697720474563ab
parente7193f8fdf4fa4eedce06ffb509d0a66a4ca808d (diff)
parentd9a4a7e703111b1909ce9e6900473048f1ba56e6 (diff)
downloadbullet3-master.tar.gz
Merge pull request #4444 from littlemine/patch-1HEADmaster
fix child transforms of a compound
-rw-r--r--examples/ExtendedTutorials/CompoundBoxes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ExtendedTutorials/CompoundBoxes.cpp b/examples/ExtendedTutorials/CompoundBoxes.cpp
index 89ddefb80..c9768e6be 100644
--- a/examples/ExtendedTutorials/CompoundBoxes.cpp
+++ b/examples/ExtendedTutorials/CompoundBoxes.cpp
@@ -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;