mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-04 17:40:06 +00:00
fix child transforms of a compound
This commit is contained in:
parent
0e59474e1c
commit
d9a4a7e703
@ -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