Do not use Unity specific things like colliders or raycasts. Suiltable for any c-like languages ( Java, C++ ). Can be transformed into any type of visualisation WinForms, Console, Canvas
Language: russian, but you can download sources as well.
Detailed explanation with step by steps here