Closed GoogleCodeExporter closed 9 years ago
Well, I see that my diagnosis wasn't absolutely accurate, but that's good. The
solution was really close and I think I have just found it. There is a method,
btCompoundShape::setLocalScaling(const btVector3& scaling), in which I changed
the line
childTrans.setOrigin((childTrans.getOrigin()) * scaling);
to
childTrans.setOrigin((childTrans.getOrigin()) * scaling / m_localScaling);
Without dividing by actual scale each consecutive scaling was cumulative, and
change from scale 1.5 to 2.0 meant that object's parts were shifted out by
factor 3.0 instead of 1.(3).
I attach the file to patch the bullet, it passed my tests.
Original comment by promyc...@gmail.com
on 28 Oct 2010 at 9:43
Attachments:
Isn't this the same as issue #374?
Original comment by wombat...@gmail.com
on 3 Nov 2010 at 2:37
Yes, I was looking for but didn't see it before.
Original comment by promyc...@gmail.com
on 3 Nov 2010 at 8:09
Fixed in latest trunk. The fix breaks the API so we'll add some warning to the
release notes.
See https://code.google.com/p/bullet/source/detail?r=2658
Thanks for the (old) contribution.
Original comment by erwin.coumans
on 10 Sep 2013 at 11:36
Original issue reported on code.google.com by
promyc...@gmail.com
on 27 Oct 2010 at 2:04Attachments: