yyyy3531614 / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

btCompound setLocalScaling wrongly setting transform Origin #374

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the setLocalScaling in the btCompoundShape is
wrongly setting the oring on the child shapes
by not dividing by the original scale :

childTrans.setOrigin((childTrans.getOrigin())*scaling);

instead of :

childTrans.setOrigin((childTrans.getOrigin()) * scaling / m_localScaling);

just made a quick patch for it 
Francois

Original issue reported on code.google.com by francois...@gmail.com on 6 Apr 2010 at 2:40

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for tracking this down! I knew something was going wrong but didn't 
have time 
to debug the issue.

Original comment by jhurlima...@gmail.com on 19 May 2010 at 7:28

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by erwin.coumans on 10 Sep 2013 at 11:36