Custom Shape Raycasts

Chase
Posts: 8
Joined: Tue Jan 18, 2011 7:14 pm

Custom Shape Raycasts

Post by Chase »

I've made a custom dynamic concave shape via the class btConcaveShape. This method has worked well when dealing with normal collisions, but raycasting has become a bit of a problem. Some of the AABBs given to the shape for raycasting are extremely large and I end up returning just about every triangle possible.

I already have a custom raycast method written for the class that I can call manually, but there doesn't appear to be any place that I can integrate this into the system as a whole. I was hoping the btCollisionShape would have a method that I could override for raycasts, but I haven't found anything.

Does anyone have any suggestions?