In line 26 of the code in the video you’ve elected to use:
movementFactor = (rawSinWave + 1f) / 2f;
Why not use the Mathf.Abs() function to get the absolute value?
movementFactor = Mathf.Abs(rawSinWave);
For those who don’t know, an absolute value is always the positive value of the input for example:
if x = 1, the absolute value will be 1. If x = -1, the absolute value is still 1.
Also, a constant shouldn’t be declared in Update(). Why is it not up with the other variable declarations?