> For the complete documentation index, see [llms.txt](https://steijn.gitbook.io/devlogs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://steijn.gitbook.io/devlogs/devlog-personal/duos/camera.md).

# Camera system

After searching for tutorials on how to do the camera system we've settled on <https://www.youtube.com/watch?v=qokYflgxU6M>

After implementing this and trying to get the rotation to work we couldn't get it to do exactly what we wanted. the rotation didn't work well with the zooming and controls get inverted.&#x20;

After discussing the issue with the assigned coach we settled on trying to implement cinemachine.&#x20;

After applying the stuff explained in <https://learn.unity.com/tutorial/cinemachine#5c7f8528edbc2a002053b4ef>&#x20;

and some searches on proper settings: <https://forum.unity.com/threads/rts-camera-with-scroll-zoom.864679/>

i've managed to make it work in a way we wanted. <https://imgur.com/a/0JkOf6i>

After a while I noticed that it's easy to lose track of your camera point control. i let someone play with the camera and this was a common complaint.&#x20;

![](/files/-MW-5qF-8fowCirDgO9I)

To solve this i decided to make it so that you now rotate around a little robot, as if you're flying that. this seemed to have fixed the issue. we'll keep this in mind for future changes to the camera.

In the future we intend to improve the distances and rotations of the camera and it's location.

&#x20;
