raycast testbed glitch?

in the Box2D Flash Testbed, there is an odd behavior of the raycast.

steps to reproduce
//for laser
bd.position.Set(4.1, 11.7);

//for circle
bd.position.Set(1.5, 10.8);



this puts them into position such that the laser hits the circle, and would hit the wall if the circle were not there.
when this is the case, lambda is returned for the circle some times and for the wall other times (every 4th time in my tests).
causing the drawn line to flash, between hitting the wall and hitting the circle.

perhaps the testbed raycast is not setup to detect which fixture is closer?
anyway looked glitch-y and took be a little while to track down the cause.
figured i would share my results.
I'm a little busy this weekend (Humble Indie Bundle FTW, but also work). Do you think it could be
http://code.google.com/p/box2d/issues/detail?id=72

I'll keep this on my todolist though.
that glitch you linked too looks like incorrect lambda.

im nearly certain what i'm referring to is 1 out of 4 calls receiving the fixture that is clearly behind another. with both are in range of the raycast.
hopefully the testbed example will give you a clear direction when you get the time to look into it.

no rush, just something i noticed.
I found that at least in the AS3 version, I could make no assumptions about the order that fixtures were returned, and had to run through the entire raycast and use max/min to get the correct result.
Ok, raycast issue was fixed now, forgot to note it in this thread.

What you described pytmn, was a problem with the Box2D engine, until I highlighted it. Erin ignored me for a while, then implemented it, and then i introduce a bug porting it to as3.
So don't say Box2DFlash is behind the times - frequently it (i.e. "I") is ahead of everything else, but until things get accepted by Erin, they are just wild and crazy ideas.

Original thread: https://box2d.org/forum/viewtopic.php?t=4976