阻力灵敏度bug
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user