mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-12 12:50:08 +00:00
Merge pull request #4444 from littlemine/patch-1
fix child transforms of a compound
This commit is contained in:
commit
39b8de74df
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user