Robert Pattinson var 22 år gammel da han spilte Cedric Diggory i Harry Potter and the Goblet of Fire, utgitt i 2005.