Hi,
I'm using the alchemy Box2d port, but not the WCK.
I'm just looking at the raycasting, which works fine, but I'm not able to tweak the callback...
The notes in b2World say:
but from the suggested callback format
it's not clear about how I can change either the callback, or the function where my callback would be received in order to get closest/farthest/all...
Any ideas as to how I can?
I'm using the alchemy Box2d port, but not the WCK.
I'm just looking at the raycasting, which works fine, but I'm not able to tweak the callback...
The notes in b2World say:
Code:
/// Ray-cast the world for all fixtures in the path of the ray. Your callback
/// controls whether you get the closest point, any point, or n-points.
/// controls whether you get the closest point, any point, or n-points.
but from the suggested callback format
Code:
/// AS3 Callback Signature:
/// function(fixture:b2Fixture, point:V2, normal:V2, fraction:Number):Number;
/// function(fixture:b2Fixture, point:V2, normal:V2, fraction:Number):Number;
it's not clear about how I can change either the callback, or the function where my callback would be received in order to get closest/farthest/all...
Any ideas as to how I can?