Implement raycasting for the BoxShape