CCD

Post Reply
cengkarim
Posts: 3
Joined: Wed Mar 27, 2013 2:14 am

CCD

Post by cengkarim »

Hi all,
I successfully managed to integrate Bullet with Ogre and was trying some demos. I replicated CcdPhysicsDemo, I was shooting a box on a stacked boxes. All the boxes (Including the shooting one) are 1x1x1 m3, the shooting box initial speed is 80. Without using CCD, the simulation was sometimes weird, I guess 80 m/sec is not that much of a speed. Turning on CCD fixed things up, but what is the cost? If CCD is that all awesome, why it wouldn't be enabled and used by default?
The demo used the following two lines in CCD, I'm just a beginner in Bullet and tried to find what those are doing but failed:
body->setCcdMotionThreshold(CUBE_HALF_EXTENTS = 1);
body->setCcdSweptSphereRadius(0.4f);

I appreciate your help.
Post Reply