It would depend on how you plan on using the blueprint but having a timeline with a float track from 0-1 wired into the Alpha pin of a LERP node should give you movement over time. Then you just wire the starting position into A of the LERP node and the final position into B. Then wire the output of the LERP node into your Set Relative Transform.
Hi, still very new to Unreal and scripting in general and I’m trying to get this lean function to a point where it isn’t extremely jarring in its movement. This is what I have so far:
I realize this is probably quite a bit messy. Is there a way I could attach something to this code that would make the movement smoother? or should I just try doing it again a different way?
Important note:
I have no mesh on this character and don’t need animations; this is just a camera transform.
Tried the Timeline and Lerping and it works extremely well for the Relative Transform. However, I see no effect whatsoever on the rotation of the camera, as I’d like to also set a roll value. I’ve tried like 4 different solutions with different kinds of lerps, but I can’t figure it out. I really wish relative rotation would work. Is there something I’m doing wrong here?