移动动效和界面调整

This commit is contained in:
lishuo committed 2021-04-25 13:33:43 +08:00
1 parent 11fdcff7c3
commit 9ac7c86ca6
12 files changed
+4926 -3498

No files matched your search

+6 -1
View File
@@ -220,8 +220,13 @@ namespace Assets.Scenes.Ride.Scripts
nextSlopeDistance = sumDistance - totalDistance * 1000;
currentSlopeDistance = totalDistance * 1000 - (sumDistance - pointList[index].Distance);
//计算当前区间距离
CurrentDistance = pointList[CurrentIndex].Grade;
CurrentDistance = pointList[CurrentIndex].Distance;
//计算上一个坡度
PreElevation = pointList[preIndex].Elevation;
PreSlope = pointList[preIndex].Grade;
}
public double PreElevation;
public double PreSlope;
//根据距离计算坐标
Vector2d Along(double endDistance)
{