Update for raycaster2D.