Adjust SpaceTimeController offset to account for the fact that real time is also moving forward.
This commit is contained in:
Родитель
ae3c1cd4e9
Коммит
8a1ab45287
|
@ -18,7 +18,7 @@ namespace TerraViewer
|
|||
if (timeRate != 1.0)
|
||||
{
|
||||
TimeSpan ts = justNow - last;
|
||||
long ticks = (long)(ts.Ticks * timeRate);
|
||||
long ticks = (long)(ts.Ticks * (timeRate - 1));
|
||||
offset = offset.Add(new TimeSpan(ticks));
|
||||
}
|
||||
last = justNow;
|
||||
|
|
Загрузка…
Ссылка в новой задаче