collision occurred by a distance

bulletwhj
Posts: 3
Joined: Wed Oct 31, 2012 3:03 am

collision occurred by a distance

Post by bulletwhj »

hi,
I have two CompoundShape in collisionWorld, I hope that when two CompoundShape the minimum distance for a value, such as 1m, that the collision has occurred, what should I do?
Traversal the two CompoundShape and distance calculation using btGjkPairDetector?
thanks!
bulletwhj
Posts: 3
Joined: Wed Oct 31, 2012 3:03 am

Re: collision occurred by a distance

Post by bulletwhj »

Can anyone think of an idea for me?
Thanks