界面调整
This commit is contained in:
1 parent
a96d538dc1
commit
922f66bb75
14 files changed
+6087
-4079
No files matched your search
@@ -66,6 +66,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
public double HeartRate { get => heartRate; }
|
||||
public int TotalTicks { get => ticks; }
|
||||
public double TotalDistance { get => totalDistance; }
|
||||
public double Distance { get => distance; }
|
||||
public double CurrentSlope { get => currentSlope; }
|
||||
public double NextSlope { get => nextSlope; }
|
||||
public double NextSlopeDistance { get => nextSlopeDistance; }
|
||||
@@ -190,6 +191,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
|
||||
public int CurrentIndex;
|
||||
private int index;
|
||||
public double CurrentDistance;//当前所处区间距离
|
||||
//当前距离所在的海拔/坡度/距离 下一个点的坡度以及剩余距离
|
||||
void ComputeNextSlope()
|
||||
{
|
||||
@@ -217,6 +219,8 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
nextSlope = pointList[nextIndex].Grade;
|
||||
nextSlopeDistance = sumDistance - totalDistance * 1000;
|
||||
currentSlopeDistance = totalDistance * 1000 - (sumDistance - pointList[index].Distance);
|
||||
//计算当前区间距离
|
||||
CurrentDistance = pointList[CurrentIndex].Grade;
|
||||
}
|
||||
//根据距离计算坐标
|
||||
Vector2d Along(double endDistance)
|
||||
|
||||
Reference in new issue
Block a user