Search code examples
chipmunkphysics-engine

Does Chipmunk support continuous collision detection yet?


I've been a Box2D user, but now I'm looking into Chipmunk. I don't think I want to leave my CCD behind though. Sources I'm finding all seem to indicate that Chipmunk does not implement CCD, but these sources are also all over a year old. I saw somebody mention someplace that the Chipmunk author might implement CCD after all, but it wasn't clear how likely that was to happen.

So, has it been implemented?

I can't ask this in the Chipmunk forum because registration is disabled there at present.


Solution

  • The short answer is no.

    I have a branch where I've been experimenting with speculative contacts to provide CCD on and off for well over a year, but it's definitely not usable. In a lot of cases, I think you'll find that CCD is not worth the extra cost (which can be quite significant in some cases). Bullets are usually better implemented as ray or circle casts. Chipmunk's higher performance generally means you can decrease the simulation step size by several factors to avoid tunneling while greatly increasing the simulation quality as a side effect.

    Sorry about the forums. The spam problem has been getting worse and worse, and I didn't want to deal with it last week while on vacation.