I’m very VERY new to Unreal Engine since switching from Unity so forgive me for my noobness. I’m looking to create a simple camera that has the camera go ahead of the character as they run right to left and vice versa. Think of it as a side-scrolling camera that goes ahead of the player. I made a simple system that achieves this by taking the positive or negative 1 created by moving the gamepad stick right or left and adjusts the spring arm socket offset accordingly. But, it offset snaps to the positive or negative 100 instantly which is not what I want.
How would I lerp this to make the camera smoothly move to the position instead of jumping directly to it?
This was made in the side scrolling template, it accounts for the somewhat odd camera setup there and behaves like so:
Using the camera lag here; to control the way the camera snaps back, you will need to work in interpolation - fInterpTo will do the trick.
Do tell if the above is enough to get you going or if you need it to work with another camera setup. Perhaps you’re building something from scratch and need a more elaborate or specific behaviour.
This worked beautifully, thank you! Although, I am having issue with the camera target point. It seems to turn with the character which, as you see from my example, is not the best. But, I’m going to be changing the character anyway so that shouldn’t be too much of a problem. Thank you!
Actually, would it be possible if instead of putting the camera point in front of the character, as it does in the included solution you provided, it would only move on the x-axis depending on whether the character is facing right or left?