Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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. ;) – doppelgreener May 5 '11 at 7:11
up vote 2 down vote accepted

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

share|improve this answer
So if I'm shooting bullets, which are very small, this value need to be quite small, isn't this a disadvantage ? – jokoon Feb 10 '13 at 21:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.