示例#1
0
    private float CurrentDirection(float _NormalisedTime, float _Offset)
    {
        float Orientation = CapyMaths.remapValue(_NormalisedTime, 0, 1, 0, 360) + _Offset;

        if (Orientation > 360)
        {
            Orientation -= 360;
        }

        return(Orientation);
    }
示例#2
0
 private float NormalisedTime(float _Time)
 {
     return(CapyMaths.remapValue(_Time, 0, 24, 1, 0));
 }