08.03.2012, 14:23
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
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