Driving head bob

I want to implement camera shake when riding in a car. I tried using HingeJoint but it doesn’t give me the desired result.

Have you experimented with Cinemachine and the varying camera shake options it provides?
It’s a component of Cinemachine called “Impulse”. You could easily set this to be enabled or disabled based on being in or out of your car. Here is a link to the package description for Impulse:
and SpeedTutor on Youtube has a great vid, quickly exposing the key innards of Cinemachine and Camera Shake in action, worth a watch …