RayCast Lasers - Contribution

Hi mayobutter.

based on your latest commits to WCK GitHub, and some stuff I've read around the forum. RayCasting has peaked your interest a bit.

your latest
https://github.com/jesses/wck/raw/master/TestBed/Raycast.as
has a few problems still, and i notice it hasn't been turned into a usable TestBed yet.

this part is a problem
Code:
if(f.IsSensor()) {
   return fraction;
}

to make it pass through:
Code:
return -1;

also a general note that i was surprised to learn:
the callback does not receive RayCast "contacts" in any specific order. returning fraction basically makes it search again for any closer "contacts"

Anyway I am happy to share my basic laser code.

http://www.sketchbookgames.com/site/wck-laser
Yeah, I know that ray cast test bed is invalid. It was a response to some thread a while ago. In that same thread the correct solution was posted I believe. I've just been way to busy to commit anything. There's a bunch of changes in the C++ version I'd like to roll in as well.
just trying to contribute a little.

Quote:
There's a bunch of changes in the C++ version I'd like to roll in as well.


cool, looking forward to changes.

is there a good place to see what changes are coming to C++ or WCK versions of box2d?

I've looked at version releases on the forum, like 2.1.2, but those don't seem to be recent enough to be the changes you are talking about.
Yeah look at the changes on google code:

http://code.google.com/p/box2d/source/list

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