# How can I make a tank that moves in all directions?

**URL:** <https://forums.unrealengine.com/t/how-can-i-make-a-tank-that-moves-in-all-directions/436956>\
**Category:** Community & Industry Discussion\
**Tags:** sockets, rotation, tank, unreal-engine, question\
**Created:** [November 3, 2018, 2:40pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-tank-that-moves-in-all-directions/436956 "2018-11-03T14:40:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean\_7575](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sean\_7575](https://forums.unrealengine.com/u/sean_7575)\
**Post date:** [November 3, 2018, 2:40pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-tank-that-moves-in-all-directions/436956/1 "2018-11-03T14:40:28Z")

</div>

Hi, I’m trying to make the player character 2 cubes on top of each other in a top down shooter. The one on top should face the cursor, whilst the one below should rotate towards the direction it’s moving. I have managed to do each of these individually but cannot figure out how to merge them because they have different scripts.The player controls both cubes at the same time, kind of like a tank, except it can move in any direction.

Any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![sean\_7575](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sean\_7575](https://forums.unrealengine.com/u/sean_7575)\
**Post date:** [November 3, 2018, 2:56pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-tank-that-moves-in-all-directions/436956/2 "2018-11-03T14:56:11Z")

</div>

I couldn’t think of a better way of phrasing that question…
