Posted July 08, 2025 by balpreets7
I was able to divide my Camera Follow script using Factory and Strategy Pattern. Factory to create and get Camera Settings and Strategy pattern to choose type of camera depending on current platform. This will allow me to handle any type of input on any type of platform later on, for example Consoles or VR headset. Just have to implement ICameraInputHandler and create related settings like sensitivity and max angles.
For mobile platforms i was able to add joystick controls on left half of the screen and camera controller on right half of the screen. Still some playtesting need to polish and optimize these