# Implement Move Tool in-game as in Editor

**URL:** <https://forums.unrealengine.com/t/implement-move-tool-in-game-as-in-editor/413889>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, Blueprint, question\
**Created:** [January 6, 2018, 11:33am UTC](https://forums.unrealengine.com/t/implement-move-tool-in-game-as-in-editor/413889 "2018-01-06T11:33:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tradestar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tradestar](https://forums.unrealengine.com/u/Tradestar)\
**Post date:** [January 6, 2018, 11:33am UTC](https://forums.unrealengine.com/t/implement-move-tool-in-game-as-in-editor/413889/1 "2018-01-06T11:33:35Z")

</div>

Hello,  
I would like to implement the move tool just like it is in the editor.

![226144-move-object.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/c/97ccf8f806d9ea8a4c4862e9576c57f2b7d8db3e.png)

How can I go about in achieving it?

Thanks.

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [January 6, 2018, 11:45am UTC](https://forums.unrealengine.com/t/implement-move-tool-in-game-as-in-editor/413889/2 "2018-01-06T11:45:22Z")

</div>

Hey there, you can create an actor with 6 static meshes (x, y, z, xy, xz, yz arrows) with mouse on click event. Then you need an enum variable with all of the options to specify the current drag mode (none, x, y, z, xy, xz, yz) and 3 float variables to store the deltas for each axis. When you detect a mouse click event for each static mesh you set the corresponding drag mode, then on tick for each drag mode you apply the delta movement of the corresponding 1/2 axis to the parent actor you are attached (the object you want to move).

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [January 6, 2018, 1:02pm UTC](https://forums.unrealengine.com/t/implement-move-tool-in-game-as-in-editor/413889/3 "2018-01-06T13:02:41Z")

</div>

I did a bit of the implementation and somethings i said can be improved, instead of having an enum you can have multiplying vector, like X is (1,0,0) XY is (1,1,0) and then you multiply that vector with your input to filter it out. I got it to work easily except the relative mouse movement orientation, i think that is the hardest part. My guess is that you have to use the dot product to see where you are facing and where the arrow is.

---

<div class="post-metadata">

**Author:** ![Tradestar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tradestar](https://forums.unrealengine.com/u/Tradestar)\
**Post date:** [January 9, 2018, 2:08pm UTC](https://forums.unrealengine.com/t/implement-move-tool-in-game-as-in-editor/413889/4 "2018-01-09T14:08:04Z")

</div>

Thanks, I’ll try to implement and see if it works out.

---

<div class="post-metadata">

**Author:** ![shuzhenwei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shuzhenwei](https://forums.unrealengine.com/u/shuzhenwei)\
**Post date:** [August 15, 2018, 9:09am UTC](https://forums.unrealengine.com/t/implement-move-tool-in-game-as-in-editor/413889/5 "2018-08-15T09:09:39Z")

</div>

Hi,Have you implemented it?I also try to implement it
