Quantcast
Viewing latest article 2
Browse Latest Browse All 9

Periodically updating frame conditionally - Time.deltaTime

I'm trying to move an object based on an array of positions values.. i.e. at a fixed interval of time (say 10ms), I want to index into the next element of the array and update the position I understand Time.deltaTime can be used like this to update the frame periodically: void Update () { transform.Rotate(Vector3.right * Time.deltaTime * 10); } but how can I change this so that the next set position comes 10 milliseconds later?

Viewing latest article 2
Browse Latest Browse All 9

Trending Articles



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