An actor who plays a Nazi lieutenant in a film has revealed how he separated himself from his character.