CCD or not?

Pierre
Posts: 67
Joined: Mon Jul 25, 2005 8:56 am

CCD or not?

Post by Pierre »

Hi,

I downloaded the Bullet-2.1-demo-win32 zip file and ran the demo. If I set the shooting speed to 600, enable CCD, and shoot a box... well, it goes directly through the brick wall as if CCD wasn't enabled.

Is that normal? (I just started actually playing with Bullet so maybe I'm missing something)

Or is the CCD only used for dynamic-vs-static, maybe?

Thanks,
- Pierre
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: CCD or not?

Post by Erwin Coumans »

Hi Pierre,

Recently Bullet got some huge refactoring, where a lot of abstractions got removed. This included the CCD stepping. The CCD time-of-impact calculation query is still available, but there is only a btDiscreteDynamicsWorld which doesn't use it (it is just penetration recovery based). I plan on adding the btContinuousDynamicsWorld this week, which uses both time of impact and penetration recovery (hybrid).

It will be both for dynamics versus dynamics, and dynamic versus static. I want to implement 2 different solutions, one based on timewarp (Brian Mirtich) which subdivides the timestep. But first I want to add a solution that adds additional contact points, based on the time of impact, and these 'temporal contact points' will be fed into the penetration depth.

Probably a picture/draft paper would explain this idea better.
Thanks,
Erwin

Pierre wrote:Hi,

I downloaded the Bullet-2.1-demo-win32 zip file and ran the demo. If I set the shooting speed to 600, enable CCD, and shoot a box... well, it goes directly through the brick wall as if CCD wasn't enabled.

Is that normal? (I just started actually playing with Bullet so maybe I'm missing something)

Or is the CCD only used for dynamic-vs-static, maybe?

Thanks,
- Pierre