successfully assign ray_origin with input