Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

share|improve this question
6  
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

1 Answer 1

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

 
discard

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.