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?