It turns out that even stuntmen are not always needed to film a car accident for a movie.
You also don’t have to hit the car: cracks are painted on the glass, and the crumpled hood is masked with a cloth of the same color.
Everything else is the magic of framing and editing!