Cade Cunningham scored 29 points as the Pistons recovered from missing their first 15 3-point tries in Orlando.