code-google-com / bullet

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

aabb tree not updated properly on compound child removal #354

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Patch applies to svn 2052

When the child shapes are reorganised it is necessary to update the indexes
in the aabb tree.  Otherwise the indexes become invalid causing segfaults.

Also I recommend putting an assert into btCompoundShape::getChildShape and
friends to detect invalid indexes as soon as they occur.

Original issue reported on code.google.com by d...@doc.ic.ac.uk on 4 Mar 2010 at 11:43

Attachments:

GoogleCodeExporter commented 9 years ago
The patch and assert is added in latest trunk
http://code.google.com/p/bullet/source/detail?r=2064

Thanks a lot for the report and patch!

Original comment by erwin.coumans on 12 Mar 2010 at 5:33