Smoothly rotate character 180 degrees
I'm trying to have my character rotate 180 degrees (or some arbitrary angle) smoothly and I'm using a timeline and a rotator lerp. It's lerping from actor rotation to control rotation
The problem is that because the delta continuously gets smaller, the lerp reaches its target at an exponential rate.
I thought I could solve this by setting the actor rotation as a variable before the timeline and lerping from that, but that doesn't work out well because I need to use shortest path on the lerp (to avoid loops). Since the actor rotation is static, if I alter the control rotation too much, it's reinterpreting what the shortest path is and basically doing an instant 180.
Any ideas on how to get around this?
asked Aug 19 '18 at 05:43 PM in Blueprint Scripting
Well I made this:
And it uses the shortest path every time.
answered Aug 19 '18 at 07:39 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here