The actor’s real-life journey was incorporated into his character’s story with a sensitive touch.