Simple Maths
#2

time = distance / velocity(speed).

Lets say speed is 1, and distance is 10. So you get 10seconds. Multiply that by 1000 and you'll have your miliseconds.

EDIT: Oh I see. There is no speed value. I think it's the same as with MoveObject.
If the time parameter means time needed for the camera to reach the destination, then you have to use proportion.
Ex: You want to move one unit per half a second
Код:
1 unit - 500 ms
10 units - x ms
x = 500ms*10units/1unit
Reply


Messages In This Thread
Simple Maths - by MP2 - 08.03.2012, 13:39
Re: Simple Maths - by wups - 08.03.2012, 14:23
Re: Simple Maths - by MP2 - 08.03.2012, 14:51
Re: Simple Maths - by wups - 08.03.2012, 15:02
Re: Simple Maths - by MP2 - 08.03.2012, 15:59

Forum Jump:


Users browsing this thread: 2 Guest(s)