Update ray usage in Raycaster.