Answers for "Mathf.PingPong with ease in and out?"
http://answers.unity.com/questions/504386/mathfpingpong-with-ease-in-and-out.html
The latest answers for the question "Mathf.PingPong with ease in and out?"Answer by Eric5h5
http://answers.unity.com/answers/504410/view.html
Mathf.SmoothStep(0, 100, Mathf.PingPong(Time.time/10, 1))Tue, 30 Jul 2013 22:32:26 GMTEric5h5Answer by Bunny83
http://answers.unity.com/answers/504399/view.html
Well, there are many ways to do this. One is to use Mathf.Cos along with Math.PingPong.
Something like that:
// C#
(Mathf.Sin(Mathf.PingPong(Time.time*Mathf.PI, Mathf.PI))+1)*0.5f*100f
Another way is a Hermite interpolation:
float Hermite(float t)
{
return -t*t*t*2f + t*t*3f;
}
Hermite(Mathf.PingPong(Time.time,1.0f))*100fTue, 30 Jul 2013 22:20:32 GMTBunny83