I have the following code in Update() which counts from 0 to 100 and back to 0, but I want to make the value start slowly, build up to speed as it increases, then slow as it reaches 100, and then speed up as it starts back to 0, and again slow as it reaches 0.
I need to use the value to ease in and out from 0 to 100
Debug.Log(Mathf.PingPong(Time.time * 10, 100));
I have looked at lots of the Mathf functions but no joy... anyone able to help?
↧