lianlab / bullet

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

Add the Index of the btCompoundShapeChild that gets hit when raytesting on a btCompoundShape to the RayResultCallback. #214

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Feature Request:

Add the index of the specific btCompoundShapeChild that gets hit when ray
testing on a btCompoundShape to the LocalRayResult parameter returnd by the
AddSingleResult method used in RayResultCallback.

RayResultCallback::addSingleResult(LocalRayResult& rayResult,bool
normalInWorldSpace)

The LocalRayResult struct already holds a LocalShapeInfo struct which could
hold the index data.

Original issue reported on code.google.com by nielscop...@gmail.com on 2 Apr 2009 at 3:43

GoogleCodeExporter commented 9 years ago

Fixed here http://code.google.com/p/bullet/source/detail?r=1878
Also see http://code.google.com/p/bullet/issues/detail?id=332

The child index of the compound is available though 
"LocalShapeInfo.m_triangleIndex"

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