What you need:
This is not an original idea, just a kind of implementation.
You can find everything you need at these two links.
https://www.xsimulator.net/community/threads/2dof-simulator-servo-model.6851/#post-77270
https://www.xsimulator.net/community/threads/motion-driven-servos-contoled-rear-view-mirror-objects.16857/#post-227115
I chose to control with the simhub program only because of its price. To test it is free with LFS car simulator game. However, due to the capabilities of the SimHUB program, that can be used with in 2DOF setup, I had to solve it with more than just a simple x and y axis control.
And the pivot point source, thank you:
https://www.thingiverse.com/thing:4742967
Sorry, but it was not possible to mark more original sources used.
Simple an perfect base for the arduino, can be glued to the top:
https://www.thingiverse.com/thing:2817087
There is a guide of the project in my own language, it will be available here in a few days.
The author remixed this model.
resizing