Probably just taking photos with a really long telephoto lens would be good.
In theory, you'd use a telecentric lens [1], but then the lens would need to be bigger than the subject, which is not super feasible for a car-sized subject. I guess for line scan, the telecentric lens just needs to cover a small vertical strip of the car so it just needs to be really tall.
Well, that screws my idea then. Best to just 3D scan the cars and model them in 3D with no perspective then!