# Let player walk path defined by coordinates

**URL:** <https://forums.unrealengine.com/t/let-player-walk-path-defined-by-coordinates/478298>\
**Category:** Character & Animation\
**Tags:** walking, move-actor, path-follow, unreal-engine, question\
**Created:** [February 5, 2021, 5:31pm UTC](https://forums.unrealengine.com/t/let-player-walk-path-defined-by-coordinates/478298 "2021-02-05T17:31:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_245f8d88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_245f8d88](https://forums.unrealengine.com/u/anonymous_user_245f8d88)\
**Post date:** [February 5, 2021, 5:31pm UTC](https://forums.unrealengine.com/t/let-player-walk-path-defined-by-coordinates/478298/1 "2021-02-05T17:31:17Z")

</div>

Hi!

I have the following goal: I built a level with a building with a room. I want the player to move around the room in a circle. for a specified time. It is for research purposes, so this is not for a game. I work with UE4.15 VRWorks. I know this version is old but this is the only one with VRWorks. Unfortunately I am really new to UE so I dont really know how to achieve that. Does someone know any solution to this?

Thanks guys!

Al\_maka

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_be08fe41](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_be08fe41](https://forums.unrealengine.com/u/anonymous_user_be08fe41)\
**Post date:** [February 5, 2021, 10:25pm UTC](https://forums.unrealengine.com/t/let-player-walk-path-defined-by-coordinates/478298/2 "2021-02-05T22:25:55Z")

</div>

Hey, for the location you can define X and Y location from this formula : X=cos(t) and Y=sin(t), where ‘t’ vary from 0 to 2pi, ex :

Graph :

 ![328986-capture-decran-2021-02-05-220825.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/0/fb069f9e451a22d72dc1f7b68fa691250cfc604f.png)

Timeline : (1st key at {0 , 0} | 2nd key at {5 , 6.283185}) → 5 is the time for the actor to do a loop and 6.283185 is 2\*pi

 ![328987-capture-decran-2021-02-05-220912.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/d/53da850897a9eddbdf759ab75abdc63385d2f5e4.png)

For the rotation you can use X/Y of last frame and use them to find look at rotation

ex :

 ![328989-capture-decran-2021-02-05-231823.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/a/6fa11a1a762e854c7073bfe0e2e719b283c5ba06.png)

For the animation, you can use a looping Run animation, adjust play rate if necessary.
