Turn around after rotation

Hi.

That’s how I rotate character.

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.

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.

1 Like

“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.

Can you show your code now?

On EventTick.

It’s your boolean that’s stopping it :wink:

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

Nope )

The code is ok, the problem must be elsewhere…

Btw, thanks for the help with initial problem. )

1 Like