How can I enable Continuous Collision Detection (CCD) in Bullet Physics?
1 Answer
You need to enable CCD per object as described in Bullet wiki or Panda3D Manual: Bullet Continuous Collision Detection. Basically you need to set body->setCcdMotionThreshold(...);
and body->setCcdSweptSphereRadius(0.2f);
-
\$\begingroup\$ So if I'm shooting bullets, which are very small, this value need to be quite small, isn't this a disadvantage ? \$\endgroup\$– jokoonFeb 10, 2013 at 21:41
Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp
. Have you tried taking a look at the code to learn what they do? Engine demos exist for a reason. ;) \$\endgroup\$