Rewritten the Raycast, finally.