A project where I try to simulate some entities in an environment that use echo linecasts as periodic environment sensors.
Built using Haxe + HaxeFlixel + Echo Physics + HaxeUI.
Here you should find the actual line casting the ray.
I don't exactly understand the code I wrote to set the starting cast position out of the body, I'd love to know if you find a better way!
Here you should find an easy way to draw the linecast using this DebugLine
class.
Check out the latest html5 build of the project if you want, but know that it may be broken and/or stuck to an older version of the project.