# Pawn movement around planet issue

**URL:** <https://forums.unrealengine.com/t/pawn-movement-around-planet-issue/788100>\
**Category:** Programming & Scripting\
**Tags:** UE-5, planet, space, unreal-engine, pawn, Blueprint\
**Created:** [March 10, 2023, 6:59pm UTC](https://forums.unrealengine.com/t/pawn-movement-around-planet-issue/788100 "2023-03-10T18:59:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nexusgot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nexusgot](https://forums.unrealengine.com/u/Nexusgot)\
**Post date:** [March 10, 2023, 6:59pm UTC](https://forums.unrealengine.com/t/pawn-movement-around-planet-issue/788100/1 "2023-03-10T18:59:59Z")

</div>

Hi everybody, I started working on a new project with small planets and space exploration. I created the player pawn as the main character and I made the walking system. Everything seemed fine until i discovered this issue: while walking around the planet the pawn moves around two poles in a spiral and if too close it gets to the center and starts rotating in place.  
I noticed that this happens when Y and Z rotations are both =90°. Is there a way I can avoid this to happen?  
Here the blueprint parts for the movement:

 ![charrot1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/7/fb781b45a513ef6ad43128b3c1ac7ccf70235864.png)  
 ![charrot2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/6/7e692380f5a59648277467b3b47b3a41c434561b.png)

And a video where I’m moving straight forward showing the issue (actor rotation in print string)  
[https://youtu.be/r9XWw6qaNvM](https://youtu.be/r9XWw6qaNvM)

---

<div class="post-metadata">

**Author:** ![Raja.Haris](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/raja.haris/32/1191940_2.png) [@Raja.Haris](https://forums.unrealengine.com/u/Raja.Haris)\
**Post date:** [March 11, 2023, 5:44am UTC](https://forums.unrealengine.com/t/pawn-movement-around-planet-issue/788100/2 "2023-03-11T05:44:56Z")

</div>

Hi there,

Have you tried using this node instead of doing the calculation by impact point with trace direction?

> **[Project Vector on to Plane](https://docs.unrealengine.com/4.26/en-US/BlueprintAPI/Math/Vector/ProjectVectorontoPlane/)**
>
> Project Vector on to Plane
