Haven't released anything in quite some time, here's a simple detection system I made while messing around. Made to be fairly simple to modify for usage in your own games. Notes have been added to explain the code. WASD to Move E to Sense
Heavily inspired by the detection system in Payday. I'm working on an improved and much more complicated version of this.