# Turn around after rotation

**URL:** <https://forums.unrealengine.com/t/turn-around-after-rotation/576296>\
**Category:** Mobile\
**Tags:** unreal-engine, UE5-0, Android, question\
**Created:** [June 7, 2022, 3:33pm UTC](https://forums.unrealengine.com/t/turn-around-after-rotation/576296 "2022-06-07T15:33:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taracast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taracast](https://forums.unrealengine.com/u/Taracast)\
**Post date:** [June 7, 2022, 3:33pm UTC](https://forums.unrealengine.com/t/turn-around-after-rotation/576296/1 "2022-06-07T15:33:13Z")

</div>

Hi.

That’s how I rotate character.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/f/22fbb91fcaa408f7664008d2a01a7c384450f358.jpeg)

Problem appears when I use this after char moved forward, go back (MoveToLocation) and trying to look backward (180 degree). In half cases (+/-) when rotation is finished, char will turn around (teleport).

Why?  
When this happened I can try to rotate once more and char will rotate like there is no rotation before. After, he can turn around (teleport) again. Or not.

Important or not, char mesh has rotation -90 degree.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 7, 2022, 7:10pm UTC](https://forums.unrealengine.com/t/turn-around-after-rotation/576296/2 "2022-06-07T19:10:12Z")

</div>

This is a multi layer problem.

1. You can’t use rinterp on a timeline. Either SetActorRotation on a timeline, or rinterp on tick.

2. If you use SetActorRotation, there is also the problem that the engine will keep correcting the rotation when it gets near +/-180. But…

This doesn’t happen with rinterp on tick, if you do it right.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/7/227d16b6e97503080dfba33b926c125f6eb88533.png)

---

<div class="post-metadata">

**Author:** ![Taracast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taracast](https://forums.unrealengine.com/u/Taracast)\
**Post date:** [June 8, 2022, 2:47pm UTC](https://forums.unrealengine.com/t/turn-around-after-rotation/576296/3 "2022-06-08T14:47:36Z")

</div>

“This doesn’t happen with rinterp on tick”  
Really odd…

Now char after coming back can stuck for couple of seconds after single tick of rotation.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 8, 2022, 2:50pm UTC](https://forums.unrealengine.com/t/turn-around-after-rotation/576296/4 "2022-06-08T14:50:11Z")

</div>

Can you show your code now?

---

<div class="post-metadata">

**Author:** ![Taracast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taracast](https://forums.unrealengine.com/u/Taracast)\
**Post date:** [June 8, 2022, 2:52pm UTC](https://forums.unrealengine.com/t/turn-around-after-rotation/576296/5 "2022-06-08T14:52:50Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/3/f1365c2965cf7bb20085f089b275fd418aec60d7.png)

On EventTick.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 8, 2022, 3:00pm UTC](https://forums.unrealengine.com/t/turn-around-after-rotation/576296/6 "2022-06-08T15:00:15Z")

</div>

It’s your boolean that’s stopping it 😉

Once you cleared it, there’s no way to reset it

---

<div class="post-metadata">

**Author:** ![Taracast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taracast](https://forums.unrealengine.com/u/Taracast)\
**Post date:** [June 8, 2022, 3:03pm UTC](https://forums.unrealengine.com/t/turn-around-after-rotation/576296/7 "2022-06-08T15:03:04Z")

</div>

Nope )

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/d/bbd81c6d17b293692e9a686d45db2dcc2e024f35.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 8, 2022, 3:10pm UTC](https://forums.unrealengine.com/t/turn-around-after-rotation/576296/8 "2022-06-08T15:10:37Z")

</div>

The code is ok, the problem must be elsewhere…

---

<div class="post-metadata">

**Author:** ![Taracast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taracast](https://forums.unrealengine.com/u/Taracast)\
**Post date:** [June 8, 2022, 3:27pm UTC](https://forums.unrealengine.com/t/turn-around-after-rotation/576296/9 "2022-06-08T15:27:53Z")

</div>

Btw, thanks for the help with initial problem. )
