Robot Camera Direction

Im working on a project RC Car, with Camera, I want to point the camera in a direction and as the car moves the camera would stay pointed at the specific direction. Is there a single sensor that would provide the directional data needed or would this require multiple sensors for magnetometer and accelerometer? I have been researching and it seems there maybe an all in one but the one I found was EOL so thats a no go.

This one https://www.sparkfun.com/products/19895 is in-stock

You may also be interested in using a dead reckoning board instead https://www.sparkfun.com/search/results … +reckoning which can do the same but also use in-built functions to orient/drive with/without a GPS signal so it can use GPS and accel/direction to drive (in addition to cams)