Unreal Youtube tutorial, Endless Runner,Unreal Youtube Tutorial, Endless Runner

Hi guys,

I’m following the endless runner tutorial:

He’s making a game like temple run, and in this video he’s getting the character to turn 90 degrees when he gets to corners.

I understand he sets up the “desired” rotation (see 7:04), but also look at his blueprint at 8:30
Why does he check to see if the “DesiredRotation” variable that he made is not equal to control rotation?
The “TurnCorner” event is getting called on tick, so why doesn’t the player change rotation as soon as the game begins? Is it because at the beginning of the game “ControlRotation” is =0?

and why does he even NEED to check to see if they are not equal? can you please explain? I just want to understand better how unreal works.

I’ve set up a system to get my character to turn 90 degrees as well, and this is the way I did it and it works fine:

,Hi