Use RotationAbsolute to calculate spm.

This commit is contained in:
Huo Yaoyuan 2017-10-05 20:08:45 +08:00
parent ee8746b848
commit 29f9c8143d
1 changed files with 2 additions and 2 deletions

View File

@ -124,9 +124,9 @@ protected override void Update()
rotationFrom = rotations.Dequeue();
timeFrom = times.Dequeue();
}
SpinsPerMinute = (currentRotation - rotationFrom) / (Time.Current - timeFrom) * 1000 * 60 / 360;
SpinsPerMinute = (RotationAbsolute - rotationFrom) / (Time.Current - timeFrom) * 1000 * 60 / 360;
}
rotations.Enqueue(currentRotation);
rotations.Enqueue(RotationAbsolute);
times.Enqueue(Time.Current);
if (Complete && updateCompleteTick())