How to make a simple up and down "head bob" for first person game's camera??

What about for detecting if a vehicle is falling. Currently i’m using the vehicle movment component. I don’t believe I can check for is falling using that component. Currently, I am using the line trace method.