# Actor controls an charcter like a joystick

**URL:** <https://forums.unrealengine.com/t/actor-controls-an-charcter-like-a-joystick/1209867>\
**Category:** Blueprint\
**Tags:** charactermovementcom, move-to-location, mouse-movement, unreal-engine, transform, translation, characters, world-position, mouse-position, Blueprint, question\
**Created:** [June 25, 2023, 7:10am UTC](https://forums.unrealengine.com/t/actor-controls-an-charcter-like-a-joystick/1209867 "2023-06-25T07:10:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![N\_DOKY](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/n_doky/32/927050_2.png) [@N\_DOKY](https://forums.unrealengine.com/u/N_DOKY)\
**Post date:** [June 25, 2023, 7:10am UTC](https://forums.unrealengine.com/t/actor-controls-an-charcter-like-a-joystick/1209867/1 "2023-06-25T07:10:36Z")

</div>

Hi there UE experts!

Due to specific requirements, I need a cube actor that control the movement of my character in a particular manner. The position of a cube will determine the direction in which the character moves. Essentially, I would like the character to continue walking indefinitely in the direction that aligns with the cube’s orientation, similar to a virtual joystick.

As I am relatively new to working with blueprints, I would greatly appreciate any assistance or guidance that can be provided in achieving this functionality.

Thank You

![Example](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/7/c9764be4a1bc70a283c4c9a0b1e71aaac9080ee6.gif)

I think I messed up the second movement in this example, hopefully it’s explains clearly.

---

<div class="post-metadata">

**Author:** ![Midisport\_8x8s](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Midisport\_8x8s](https://forums.unrealengine.com/u/Midisport_8x8s)\
**Post date:** [June 27, 2023, 12:13am UTC](https://forums.unrealengine.com/t/actor-controls-an-charcter-like-a-joystick/1209867/2 "2023-06-27T00:13:33Z")

</div>

Add a navmesh. Get the position of the cube, add 1000 in the x direction, and use that location as a MoveToLocation on the controller of the Pawn. It might need to be an AI controller.
