# Setting new rotation with delay without rInterp?

**URL:** <https://forums.unrealengine.com/t/setting-new-rotation-with-delay-without-rinterp/366761>\
**Category:** Community & Industry Discussion\
**Tags:** rotation, delay, Oculus, unreal-engine, question, rinterpto\
**Created:** [August 10, 2016, 8:55pm UTC](https://forums.unrealengine.com/t/setting-new-rotation-with-delay-without-rinterp/366761 "2016-08-10T20:55:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5ec47111](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5ec47111](https://forums.unrealengine.com/u/anonymous_user_5ec47111)\
**Post date:** [August 10, 2016, 8:55pm UTC](https://forums.unrealengine.com/t/setting-new-rotation-with-delay-without-rinterp/366761/1 "2016-08-10T20:55:58Z")

</div>

Hi! RInterp looks cool for many uses but it doesn’t fit my needs. I would like to have an actor mimmic the same exact rotation of my Oculus-Rift, but with a delay (latency may be a better word). So when the HMD rotates 90\*, I want the actor to stay right in place for 1 second and then rotate 90\* with the same speed as the HMD did.

Would that be possible with Blueprints only?

 ![102360-actualdelayedrotation.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/7/8370d586ddf91574ab6b5ea7e7a553b31c485187.jpeg)

---

<div class="post-metadata">

**Author:** ![CriErr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CriErr](https://forums.unrealengine.com/u/CriErr)\
**Post date:** [August 11, 2016, 7:15pm UTC](https://forums.unrealengine.com/t/setting-new-rotation-with-delay-without-rinterp/366761/2 "2016-08-11T19:15:06Z")

</div>

You can just record all rotation values on tick and when array length hit some known threshold (let’s say for 60 times per sec, delay/tick is set to 0.1666 which after 5 sec would produce array length 300) you would start removing elements from beginning of array and add to end. So you can always get to the past values just by getting required index.

If you using c++ there are some smart Queue like data types which im not experienced enought to talk about.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5ec47111](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5ec47111](https://forums.unrealengine.com/u/anonymous_user_5ec47111)\
**Post date:** [August 11, 2016, 9:04pm UTC](https://forums.unrealengine.com/t/setting-new-rotation-with-delay-without-rinterp/366761/3 "2016-08-11T21:04:04Z")

</div>

Thanks alot for explaining! This works perfectly. Arrays are still new to me, but doesn’t it matter that it just keeps running indefinitely like this?

 ![102518-delayedhmdrotation.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/4/ec4f30f986b3ac97ead6bafba40d17534a5b871c.jpeg)

---

<div class="post-metadata">

**Author:** ![CriErr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CriErr](https://forums.unrealengine.com/u/CriErr)\
**Post date:** [August 12, 2016, 8:18am UTC](https://forums.unrealengine.com/t/setting-new-rotation-with-delay-without-rinterp/366761/4 "2016-08-12T08:18:03Z")

</div>

It would consume a lot of memory, also this one woud spam log for first 30 ticks about array out of bounds.
