mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 05:10: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
|
#else
|
||||||
// recompute the shift to make sure the compound shape is re-aligned
|
// recompute the shift to make sure the compound shape is re-aligned
|
||||||
for (int i = 0; i < compoundShape->getNumChildShapes(); i++)
|
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));
|
compoundShape->getChildShape(i));
|
||||||
#endif
|
#endif
|
||||||
delete compoundShape;
|
delete compoundShape;
|
||||||
|
Loading…
Reference in New Issue
Block a user