forked from: forked from: Ray casting test

