How to get the child shape of compound shape during raycast

panzergame
Posts: 3
Joined: Fri May 15, 2015 9:48 am

How to get the child shape of compound shape during raycast

Post by panzergame »

Hello everybody.

How can i get the child compound shape during a raycast ?
I saw that the m_triangeIndex in the shape info should contains the child index but it can't because bullet check if the shape info doesn't exit but it exist anyway.
Thanks.
panzergame
Posts: 3
Joined: Fri May 15, 2015 9:48 am

Re: How to get the child shape of compound shape during rayc

Post by panzergame »

Hello everyone.

i saw that the child shape is contained in the object wrapper (btCollisionObjectWrapper) used un rayTest, but how get this wrapper from the function addSingleResult in btCollisionWorld::ClosestRayResultCallback ?

Thanks in advance.

Tristan.