# Rotate character towards input direction over short time?

**URL:** <https://forums.unrealengine.com/t/rotate-character-towards-input-direction-over-short-time/583208>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, Blueprint, UE4-27, question\
**Created:** [June 16, 2022, 8:30am UTC](https://forums.unrealengine.com/t/rotate-character-towards-input-direction-over-short-time/583208 "2022-06-16T08:30:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoveYouChunk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LoveYouChunk](https://forums.unrealengine.com/u/LoveYouChunk)\
**Post date:** [June 16, 2022, 8:30am UTC](https://forums.unrealengine.com/t/rotate-character-towards-input-direction-over-short-time/583208/1 "2022-06-16T08:30:43Z")

</div>

Hi everybody. I’ve been fighting with this for a while and I could really use some assistance.

What I’m trying to achieve: When my character makes an attack, I want him to turn towards the direction the player was holding when the button was pressed. I want the turn to start immediately as the button is pressed, and end at the beginning of the impact of the attack.

What I have so far: I have the times from the start of the animation until the impact of the attack as a float called “turnTime” that is trying to control a timeline that is set up as a float track that goes from 0-1 with a length of 1 second. I’ll include a screenshot below. The current setup is working in theory, but the interpolation time is so finicky that I can’t get it just right, and it works better for some animations than others, so a project with 100+ animations is just not gonna work this way.

What I’ve tried: I’ve tried using Rinterp to Constant with very little promise, and lerp seemed to do nothing. Rinterp to is the closest thing I’ve gotten to working, but as stated before, I can’t quite get it to be consistent. I’ve also considered using notifies in the animations, but my issue seems to be too specific for that.

 ![bpcursed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/9/969814bae5498861ad53df4ac2b4152acdfd50b1.jpeg)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [June 16, 2022, 9:18am UTC](https://forums.unrealengine.com/t/rotate-character-towards-input-direction-over-short-time/583208/2 "2022-06-16T09:18:40Z")

</div>

As for me, timeline is the way to go, because the duration of Rinterp will depend on the difference between the initial and the target rotation.  
Save current rotation to a variable before starting the timeline, and interpolate between the start rotation and the target rotation.

---

<div class="post-metadata">

**Author:** ![LoveYouChunk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LoveYouChunk](https://forums.unrealengine.com/u/LoveYouChunk)\
**Post date:** [June 16, 2022, 4:56pm UTC](https://forums.unrealengine.com/t/rotate-character-towards-input-direction-over-short-time/583208/3 "2022-06-16T16:56:28Z")

</div>

Thank you, getting the character rotation during the interp was definitely causing the goofiness. I did end up using a lerp rotator because I still couldn’t get it feeling right with manual interpolation times. Posting what ended up working below in case someone comes across this in the future.

 ![solved](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/4/b049c0abf671f389bb0d0b7f7e0b72a6a816ce2f.jpeg)

---

<div class="post-metadata">

**Author:** ![Patea1234](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Patea1234](https://forums.unrealengine.com/u/Patea1234)\
**Post date:** [July 22, 2026, 10:59am UTC](https://forums.unrealengine.com/t/rotate-character-towards-input-direction-over-short-time/583208/4 "2026-07-22T10:59:32Z")

</div>

Ahhh, thank you so much for this, I’m able to fix the same issue as you, thanks you thinking of the future for someone having the same problem 🙂
