mayobutter wrote:
I'm pretty sure that sensor contacts are handled in exactly the same manner as normal body contacts (just without a collision response). So... CCD should work with sensors. Correct me if I'm wrong.
Yeah, CCD doesn't work with sensors, though the manual doesn't say so explicitly. Problem is that if sensors counted for CCD then an overlapping shape would cause the engine to hang by advancing the time by 0 repeatedly. There is probably some work around to ensure that sensors only count for CCD once per frame, but it ain't in Box2D yet. There is already a TODO_ERIN in the code which looks like it will fix this.spitzanator wrote:
Unfortunately, I try to store the contact velocity, but when the contact callback registers, it has the new velocity (the one that it receives AFTER bouncing).
It really should be working? The docs for b2ContactPoint.velocity definitely states it has the pre-solver velocity (relative velocity, not that it affects you). You sure you are getting a contact point and not a contact result?