shoot_rays method implemented