Quantcast
Channel: Questions in topic: "ping"
Viewing all articles
Browse latest Browse all 93

Mathf.PingPong with ease in and out?

$
0
0
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?

Viewing all articles
Browse latest Browse all 93

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>