CCD for compound shapes

RafetDurgut
Posts: 2
Joined: Thu Oct 10, 2013 8:17 am

CCD for compound shapes

Post by RafetDurgut »

Hi,
im using ccd for my project. But i have a problem. If i use box collision shape ccd is work. otherwise if use compound collision shape ccd isn't work. How can i solve this problem.
Thanks.
rtrius
Posts: 43
Joined: Sat May 26, 2012 1:09 am

Re: CCD for compound shapes

Post by rtrius »

CCD is not performed if the shape is not convex. In order to have CCD for compound
shapes, you would have to manually implement it by calculating the position/orientation
of each sub-shape in the compound shape and using btDiscreteDynamicsWorld::convexSweepTest()
or btDiscreteDynamicsWorld::rayTest() to detect collisions.