新版骑行页面前备份
This commit is contained in:
1 parent
4896fab824
commit
e7ad9473a5
85 files changed
+6816
-5424
No files matched your search
@@ -118,11 +118,11 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//前后取50个点
|
||||
decimal diff = i - playerController.CurrentIndex;
|
||||
decimal diffAbs = Math.Abs(diff);
|
||||
if (diffAbs <= 50)
|
||||
if (diffAbs <= 200)
|
||||
{
|
||||
dat.Add(item);
|
||||
}
|
||||
if (diff < 0 && diff > -100)
|
||||
if (diff < 0 && diff > -200)
|
||||
{
|
||||
item.y += 0.30001f;
|
||||
path.Add(item);
|
||||
@@ -131,7 +131,11 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
var feat = new VectorFeatureUnity();
|
||||
feat.Points.Add(dat);
|
||||
//处理海拔高度的问题
|
||||
//SnapModifier.Run(feat, meshData, tile);
|
||||
//bool foundTile = _map.MapVisualizer.ActiveTiles.TryGetValue(Conversions.LatitudeLongitudeToTileId(_map.CenterLatitudeLongitude.x, _map.CenterLatitudeLongitude.y, (int)_map.Zoom), out tile);
|
||||
//if (foundTile)
|
||||
//{
|
||||
// SnapModifier.Run(feat, meshData, tile);
|
||||
//}
|
||||
CreatMapRoute(feat);//创建路线
|
||||
CreatPathRoute(path);//创建骑行过的线路
|
||||
}
|
||||
@@ -194,8 +198,8 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
lineRender.startColor = new Color(1, 1, 1, 0.65f);
|
||||
|
||||
//设置宽度
|
||||
lineRender.startWidth = 0.6f;
|
||||
lineRender.endWidth = 0.6f;
|
||||
lineRender.startWidth = 1f;
|
||||
lineRender.endWidth = 1f;
|
||||
lineRender.positionCount = dat.Count;
|
||||
lineRender.SetPositions(feat.Points[0].ToArray());
|
||||
lineRender.loop = false;
|
||||
@@ -220,8 +224,8 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
lineRender.startColor = new Color(0.9764706f, 0.1882353f, 0.5254902f, 0.65f);
|
||||
|
||||
//设置宽度
|
||||
lineRender.startWidth = 0.61f;
|
||||
lineRender.endWidth = 0.61f;
|
||||
lineRender.startWidth = 1f;
|
||||
lineRender.endWidth = 1f;
|
||||
lineRender.positionCount = feat.Count;
|
||||
lineRender.SetPositions(feat.ToArray());
|
||||
lineRender.loop = false;
|
||||
|
||||
Reference in new issue
Block a user