test ray casting working