private float CurrentDirection(float _NormalisedTime, float _Offset) { float Orientation = CapyMaths.remapValue(_NormalisedTime, 0, 1, 0, 360) + _Offset; if (Orientation > 360) { Orientation -= 360; } return(Orientation); }
private float NormalisedTime(float _Time) { return(CapyMaths.remapValue(_Time, 0, 24, 1, 0)); }