How to get the hit collision shape from ray test result?

Post Reply
kkpattern
Posts: 1
Joined: Mon Dec 19, 2016 12:37 pm

How to get the hit collision shape from ray test result?

Post by kkpattern »

Hi, I created a btCollisionObject with a btCompoundShape. When the btCollisionObject is returned by rayTest, can I get which shape in the btCompoundShape of the btCollisionObject is hit? I googled around but couldn't find a way to do it.
hyyou
Posts: 96
Joined: Wed Mar 16, 2016 10:11 am

Re: How to get the hit collision shape from ray test result?

Post by hyyou »

Agree, I want to know too.
Similar feature like AABB query also doesn't work for subshape, I think.

I think I have to calculate it based on a btCompoundShape myself.
Post Reply