Hello everyone, I have just started learning Unreal Engine to assist with 3D modeling. I am currently creating a camera pawn that can move to different locations. When the pawn is stationary, there are no issues. However, when the pawn moves, instead of returning to the position I set up, the rotation angle changes to the angle of the previous camera. Could you please advise me on how to fix this? When I click on the setup of the user interface, the camera pawn moves to the correct rotation angle that I set up, rather than the position of the previous camera. I would like the camera will be able to move. Thank you, everyone. The first code is camera pawn movement, and second is the user interface.
I think, the problems is that the rotation of camera inherit from the previous position. How can i turn it off?
The camera is probably following the controller rotation. When calling the position function try setting the controllers rotation and not the actor.