阻力灵敏度bug

This commit is contained in:
lishuo committed 2021-04-29 23:44:47 +08:00
1 parent b030294bd6
commit aaef57c0b0
6 files changed
+2589 -2595

No files matched your search

@@ -32,10 +32,12 @@ namespace Assets.Scenes.Ride.Scripts
cadance = mainController.UpdateCadence();
weight = App.CurrentUser.Weight;
bicycleWeight = App.CurrentUser.BicycleWeight;
#if UNITY_EDITOR
power = 2000;//测试功率
#endif
mainController.TrackResistance(currentSlope * App.rideSetting.sensitivity);
//#if UNITY_EDITOR
//power = 2000;//测试功率
//#endif
Debug.Log(currentSlope.ToString() + "==" + App.rideSetting.sensitivity.ToString());
//mainController.CheckAnt();
mainController.TrackResistance(currentSlope * App.rideSetting.sensitivity/100);
speed = Helper.CalculateSpeed(elevation, currentSlope, power, weight, bicycleWeight);
distance = mainController.UpdateDistance(speed);
totalDistance += distance;