# Can someone explain this "Door Open" Timeline?

**URL:** <https://forums.unrealengine.com/t/can-someone-explain-this-door-open-timeline/386633>\
**Category:** Community & Industry Discussion\
**Tags:** timeline, relative-location, unreal-engine, door, question\
**Created:** [March 1, 2017, 5:26pm UTC](https://forums.unrealengine.com/t/can-someone-explain-this-door-open-timeline/386633 "2017-03-01T17:26:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VagrantProfile](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VagrantProfile](https://forums.unrealengine.com/u/VagrantProfile)\
**Post date:** [March 1, 2017, 5:26pm UTC](https://forums.unrealengine.com/t/can-someone-explain-this-door-open-timeline/386633/1 "2017-03-01T17:26:38Z")

</div>

So I’m confused by why my “Door Open” timeline works the way it does and I could REALLY use an explanation for what I’m seeing.

To preface, I followed along the “Infinite Runner” video tutorials online. To expand upon that video series, I wanted to create another tile type in which my runner has to run over a switch to open a door.

Here’s what my “Open Door” blueprint looks like visually (gotta touch the yellow switch to open the red door)…

 ![128284-touchswitch_raisedoor.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/3/f1303d1470695316a9fcc2b3162d6b6e67324f9e.jpeg)

So in my timeline, I have a Vector track set up. In the Z, I set up 2 key frames:

- Key 1: Time = 0, Value = 0
- Key 2: Time = 0.5, Value = 10

 ![128287-door_timeline.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/5/5657b94c3f4cf63556a3bc1241e88cea3b39c8f1.jpeg)

In the event graph, I have the following set-up going on…Note that off the image to the left is my overlap event which sets this door open timeline in to motion…

 ![128288-door_eventgraph.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/f/1bfd94f5de26c486d492218a0a26ea6cd2e79915.jpeg)

**RESULT:** My door opens…but it moves up in the Z axis WAY more than the 10 unreal units I was expecting (as set by key #2 in my timeline!)

**EXPECTED RESULT:** With this particular timeline set-up, I was expecting my door to ONLY move up 10 unreal units in the Z axis (as this was JUST a test.) Instead, my door slides up in the Z at LEAST a few hundred units.

**WHY?** I don’t understand why the door is moving several hundred units in the Z axis instead of just 10

---

<div class="post-metadata">

**Author:** ![Black\_Phoenyx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Black\_Phoenyx](https://forums.unrealengine.com/u/Black_Phoenyx)\
**Post date:** [March 1, 2017, 5:43pm UTC](https://forums.unrealengine.com/t/can-someone-explain-this-door-open-timeline/386633/2 "2017-03-01T17:43:17Z")

</div>

The reason why it keeps moving up is because each point on the timeline is adding additional z value to the relative location…at .1 it adds a value then at .11 it adds on top of that value to the value from .1 etc etc.

Use a lerp and a 0 to 1 value return from the timeline and lerp from the starting position to the desired end location using the timeline return as the alpha.  
Something like this should work:

 ![128295-vectorlerpfordoor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/e/29e0279ee054e378d6d046d6d399087c97afd4df.png)

Edit: added image reference

---

<div class="post-metadata">

**Author:** ![VagrantProfile](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VagrantProfile](https://forums.unrealengine.com/u/VagrantProfile)\
**Post date:** [March 1, 2017, 6:51pm UTC](https://forums.unrealengine.com/t/can-someone-explain-this-door-open-timeline/386633/3 "2017-03-01T18:51:40Z")

</div>

Very helpful! Thank you!

---

<div class="post-metadata">

**Author:** ![Black\_Phoenyx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Black\_Phoenyx](https://forums.unrealengine.com/u/Black_Phoenyx)\
**Post date:** [March 1, 2017, 7:08pm UTC](https://forums.unrealengine.com/t/can-someone-explain-this-door-open-timeline/386633/4 "2017-03-01T19:08:41Z")

</div>

Don’t forget to mark this as resolved
