Add ray casting support

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>