# How to create a rotating bridge in blueprints

**URL:** <https://forums.unrealengine.com/t/how-to-create-a-rotating-bridge-in-blueprints/310997>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, UE4, Blueprint, question\
**Created:** [March 15, 2015, 12:57am UTC](https://forums.unrealengine.com/t/how-to-create-a-rotating-bridge-in-blueprints/310997 "2015-03-15T00:57:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1a0cce9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1a0cce9a](https://forums.unrealengine.com/u/anonymous_user_1a0cce9a)\
**Post date:** [March 15, 2015, 12:57am UTC](https://forums.unrealengine.com/t/how-to-create-a-rotating-bridge-in-blueprints/310997/1 "2015-03-15T00:57:17Z")

</div>

Hello,

I’m trying to make a bridge that swings 45 degrees on it’s pivot, then after a few seconds swings back…then repeats forever. I’m having trouble getting the initial 45 degree pivot to not also reset the static mesh rotation (in this case a bridge) to 0,0,0 and then interpolating the 45 degree yaw.

Assuming I got that working, how would I go about triggering the reverse animation and then looping them?

Thanks!

 ![34224-blueprint.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/0/7d0379afb5d93e4ff4d1e2cee24be35d0d176e4a.png)

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [March 15, 2015, 1:26am UTC](https://forums.unrealengine.com/t/how-to-create-a-rotating-bridge-in-blueprints/310997/2 "2015-03-15T01:26:09Z")

</div>

Going from “Finished” in to “Reverse” should do what you want. But i haven’t worked with timelines in a while. :X

---

<div class="post-metadata">

**Author:** ![AttemptD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AttemptD](https://forums.unrealengine.com/u/AttemptD)\
**Post date:** [March 15, 2015, 2:18am UTC](https://forums.unrealengine.com/t/how-to-create-a-rotating-bridge-in-blueprints/310997/3 "2015-03-15T02:18:22Z")

</div>

I would do this differently but it should work.  
At begin play take ur actor rotation and set it to variable calling it like Initial rotation or something.  
Create a time line afterwards and go to “play from start”.  
You could setup up a 10 second time line. Create a vector track inside of it. Solo out the z axis. Go from 0 to 45 over 2 seconds. Have it chill there from 2 to 5 seconds. Then from 45 to 0 to the 7 second mark. And then stay still until the 10 second mark. Then just make sure you check loop.  
Set all of this to the actor rotation. 🙂  
Hope this helps!!
