code-google-com / bullet

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

Supply ray/cast local shape info when ray hits compounds #332

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Previously, the m_localShapeInfo member was NULL for compounds, this patch
sets it and provides (-1, child_index) for the (part,index) members of the
localShapeInfo.

Apply patch to svn

Original issue reported on code.google.com by d...@doc.ic.ac.uk on 16 Jan 2010 at 3:47

Attachments:

GoogleCodeExporter commented 9 years ago

That looks like a nice solution, and aside from a minor issue it has been 
committed:
http://code.google.com/p/bullet/source/detail?r=1878

The issue was an assert: the closest hit fraction needed to be initialized, 
otherwise 
you can hit asserts (adding hits further away then the current closest hit)
This fixes it:
my_cb.m_closestHitFraction = resultCallback.m_closestHitFraction;

It solves this outstanding issue:
http://code.google.com/p/bullet/issues/detail?id=214

Thanks for the patch!
Erwin

Original comment by erwin.coumans on 19 Jan 2010 at 5:53