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
to make it pass through:
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
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;
}
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