Number of iterations to real time

Posted by Ivansek on Game Development See other posts from Game Development or by Ivansek
Published on 2012-08-28T06:47:09Z Indexed on 2012/08/28 9:51 UTC
Read the original article Hit count: 137

Filed under:

I have an animation of traffic. I have 20 cars in road network, each car have a starting node and end node. Each car know how much distance does it need to travel in order to reach the end node. I move cars each 20 ms for 10 px. To move all cars from their start node to end node I need 60 iterations. That is 60*20ms = 1200ms.

Now I want to convert this time, or use data that I have, to a real time where car move 50km/h. How can I do that? Any idea?

© Game Development or respective owner

Related posts about animation