as3 slice feature

http://www.emanueleferonato.com/2011/06 ... 2d-part-2/
this seems pretty solid, wondering if it could work its way into WCK.
(thanks keybol for showing me this)
This is absolutely breaking me....

I've got as far as setting the start and end point of my 'laser' and then doing a RayCast, but can't seem to get it to return any fixtures??

gc is the instance name of a container MC which extends WCK and world is the world MC.

I have a trace statement in checkRayCast method, but it never gets that far. I don't get any errors etc.

But if I click and release mouse quickly, (so start an end point are the same) I get the following:
Assertion failed: (r.LengthSquared() > 0.0f), function RayCast, file ../Box2D/Collision/b2DynamicTree.h, line 192.

Code:
gc.world.b2world.RayCast(checkRayCast, new V2(startPos.x,startPos.y), new V2(endPos.x,endPos.y));


Can anyone point me in the right direction?
If there is an error in your raycast callback alchemy will swallow it up into the abyss. The debugger wont even see it. I would start by wrapping the guts of your callback in a try...catch block and see if you can catch an error that you couldn't see before.

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