Finished basic ray cast