# Calculate Direction On Spheric World

**URL:** <https://forums.unrealengine.com/t/calculate-direction-on-spheric-world/1155598>\
**Category:** Programming & Scripting\
**Tags:** planet, movement-component, unreal-engine, FeatureRequest, UE5, pawn, question, Blueprint\
**Created:** [May 5, 2023, 4:47pm UTC](https://forums.unrealengine.com/t/calculate-direction-on-spheric-world/1155598 "2023-05-05T16:47:08Z")\
**Posts on this page:** 1\
**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:** [May 5, 2023, 4:47pm UTC](https://forums.unrealengine.com/t/calculate-direction-on-spheric-world/1155598/1 "2023-05-05T16:47:09Z")

</div>

Hi everybody,  
I’m creating a space game with small planets. To calculate the movement direction to use in my BlendSpace 2D I used “Calculate Direction” in the Animation Blueprint (Actor velocity → Velocity | Actor Rotation → Base Rotation). The problem is that it seems to get confused when I move around the planet, resulting in situations where the pawn moves forward with the back walking animation. How do I properly calculate the direction movement on a round planet according to the real direction of my pawn (forward = 0, backwards = 180/-180, right = 90, left = -90)?

Thanks.
