Sight & Light
Posted: Sun Mar 23, 2014 4:15 pm
I really liked this article about rendering with simple and fast ray intersection logic. So I decided to port the ray logic into a really lightweight object. There are number of raycasting implementations for Lua out there but most of them have a lot of dependencies. This implementation only depends on vrld's vector class (and that's really just for convenience).
Here's line.lua: https://gist.github.com/TannerRogalsky/9724785
You can see some of the applications in that original blog post or you can download my Love2D proof of concept below or you can check out my code.
Here's line.lua: https://gist.github.com/TannerRogalsky/9724785
You can see some of the applications in that original blog post or you can download my Love2D proof of concept below or you can check out my code.