I am building a model viewer in Unreal and I am trying to create a function for zooming in and out with the right mouse button (similar to how zooming works in Maya). At the moment I have a function for zooming on the scrollwheel that works like this:
It is basically a pawn with a spring arm and a camera attached to it as components. This is how far I have gotten in translating the zoom to the right mouse button:
The problem is that it does not only move the camera or increase/decrease the length of the spring arm but instead moves the pawn, which means that the zoom creates new focus points in the scene when used. I can´t seem to attach the spring arm or the camera as a target in the LocalTransform. How can I sort this out?