3
\$\begingroup\$

How can I enable Continuous Collision Detection (CCD) in Bullet Physics?

\$\endgroup\$
1
  • 6
    \$\begingroup\$ The Bullet Physics SDK contains a CCD physics demo in 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\$ May 5, 2011 at 7:11

1 Answer 1

2
\$\begingroup\$

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);

\$\endgroup\$
1
  • \$\begingroup\$ So if I'm shooting bullets, which are very small, this value need to be quite small, isn't this a disadvantage ? \$\endgroup\$
    – jokoon
    Feb 10, 2013 at 21:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .