HI I am new to using UE and have been trying to figure out how to make a topdown camera rotate while a button is pressed
I have been able to make a camera rotate in fixed intervals such as 90degrees etc… but what I would like is a way to rotate the camera while the button is pressed so for example
rotate +z when holding E, then -z when holding Q
I have tried using a few things like while loops (Crash) none of it seems to be working as expected…
I have been able to bind the zoom to the scroll wheel.
long run the goal is to be able to
zoom in/out with scroll wheel (working)
dynamically rotate world rotate camera/spring arm (in Z +/-) while a button is pressed
If you go into project settings, under the “Engine” category, click on “input” and add a new axis mapping. Call that axis mapping in your blueprint and use the node “add local rotation”. When you have the rotation node, right click the purple rotate variable built into the node and split it. Once that is done plug the float from the mapping input into the “Z” float in the rotation.
ended up binding it to the spring arm vs the camera to get it to rotate around the actor vs spin in place, but that is far simpler than what I was trying, so far what I have is this I am open to improvements etc…