I have a system using bullet physics that uses compound rigid body physics,
a raycast striking the objects children, simply returns the object, (not a child object)
to work around this, I use the distance from the hitpoint to the child object, but this is a bit naive, as the collision volume can be a sphere, cube, capsule etc, that is scaled on 3 axis.
I can get the x,y, and z bound dimensons local to the object,
how would I use this information to detect which child object was hit by the ray?
I was thinking some sort of check against the point, and the bounds of the child shapes, but it needs to be pretty fast, and its using python.