# Help with line!

**URL:** <https://forums.unrealengine.com/t/help-with-line/17854>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [December 27, 2014, 6:49am UTC](https://forums.unrealengine.com/t/help-with-line/17854 "2014-12-27T06:49:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJ-INSERT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DJ-INSERT](https://forums.unrealengine.com/u/DJ-INSERT)\
**Post date:** [December 27, 2014, 6:49am UTC](https://forums.unrealengine.com/t/help-with-line/17854/1 "2014-12-27T06:49:03Z")

</div>

![Screenshot (21).jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/e/5ec3fbb94007de8d309e1c61ce4a4b9add865f88.jpeg) Is there a way to have the box move from its new x axis direction? I want it to move and rotate on button click, then play the same motion from the box’s new orientation when I click again. Essentially if you keep hitting the button it would move in a circle. Whats happening is the box just plays the same motion and moving on the worlds axis, not its own.

---

<div class="post-metadata">

**Author:** ![Fen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fen/32/635651_2.png) [@Fen](https://forums.unrealengine.com/u/Fen)\
**Post date:** [December 27, 2014, 10:04am UTC](https://forums.unrealengine.com/t/help-with-line/17854/2 "2014-12-27T10:04:13Z")

</div>

Hello,  
I am not sure of your whole movement but if you rotate actor in desired new position on finished output it would be ok. (maybe you’ll have to rotate back component too, i haven’t try and depending if your actor is moved or not, move it too to its new start location on finished output too)

---

<div class="post-metadata">

**Author:** ![DJ-INSERT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DJ-INSERT](https://forums.unrealengine.com/u/DJ-INSERT)\
**Post date:** [December 28, 2014, 7:24am UTC](https://forums.unrealengine.com/t/help-with-line/17854/3 "2014-12-28T07:24:57Z")

</div>

Not sure about you suggestion? Does the timeline only use the worlds axis to calculate its movement? If someone can make my exact BP, or as close as possible, and see if you can get it to do what im trying to accomplish.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [December 28, 2014, 7:49am UTC](https://forums.unrealengine.com/t/help-with-line/17854/4 "2014-12-28T07:49:11Z")

</div>

So you are setting your new Location after the last one is complete then running a loop?

---

<div class="post-metadata">

**Author:** ![Fen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fen/32/635651_2.png) [@Fen](https://forums.unrealengine.com/u/Fen)\
**Post date:** [December 28, 2014, 11:04am UTC](https://forums.unrealengine.com/t/help-with-line/17854/5 "2014-12-28T11:04:08Z")

</div>

Here is a quick setting :

 ![timeline6.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/7/670e476bb81ecb62bf4685f8a1ff52151f61a725.jpeg)

I move a static mesh with a relative movement (not a world one) in a blueprint with a box as root (which is the element the mesh will move around) At the end of the movement, i move the root box at the mesh location and rotate it and i reset mesh location.

I set a p event in level blueprint to activate each different rotation.

Edit : You can do a relative movement with the box as center and the mesh turning around too. At the end of movement, you do the same : rotate the box and set mesh position bts or use variables to set starting loc and rot of mesh if you want. Even you can rotate only the root and set mesh at distance, cool for a perfect circle.

---

<div class="post-metadata">

**Author:** ![DJ-INSERT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DJ-INSERT](https://forums.unrealengine.com/u/DJ-INSERT)\
**Post date:** [December 28, 2014, 7:54pm UTC](https://forums.unrealengine.com/t/help-with-line/17854/6 "2014-12-28T19:54:47Z")

</div>

How are you getting the"Target is bp1\_c StaticMesh1" in the relative location? I get is"Target is Scene Component" and i wants me to hook something up there. The pic is the movement I’m looking for. If there is a different option to get this show me please!

 ![4ac5f6ecb8772ff2327a0c6542b3908b2d28e0a4.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/c/4ac5f6ecb8772ff2327a0c6542b3908b2d28e0a4.jpeg)

---

<div class="post-metadata">

**Author:** ![Fen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fen/32/635651_2.png) [@Fen](https://forums.unrealengine.com/u/Fen)\
**Post date:** [December 28, 2014, 8:02pm UTC](https://forums.unrealengine.com/t/help-with-line/17854/7 "2014-12-28T20:02:21Z")

</div>

Oh yes, this 4.6 new node, but you have the same result by using set relative location (target is scene component) and link your mesh as input. And your picture is what you’ll have with this setting.

Edit : One thing not done in example is to lock event “p” to not have it activated before end of move.

---

<div class="post-metadata">

**Author:** ![DJ-INSERT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DJ-INSERT](https://forums.unrealengine.com/u/DJ-INSERT)\
**Post date:** [December 29, 2014, 5:49am UTC](https://forums.unrealengine.com/t/help-with-line/17854/8 "2014-12-29T05:49:24Z")

</div>

YOUR THE MAN!!! I’ve been trying different ways and nothing was working.

---

<div class="post-metadata">

**Author:** ![Fen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fen/32/635651_2.png) [@Fen](https://forums.unrealengine.com/u/Fen)\
**Post date:** [December 29, 2014, 8:57am UTC](https://forums.unrealengine.com/t/help-with-line/17854/9 "2014-12-29T08:57:32Z")

</div>

Thank you ^^ Happy that helped you.
