You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatic merge of T1.5.1-925-g1c557094e and 19 pull requests
- Pull request #570 at 3539862: Experimental glTF 2.0 support with PBR lighting
- Pull request #799 at 1a70945: Consolidated wind simulation
- Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters
- Pull request #876 at f92de76: docs: add source for documents previously on website to source Documentation folder
- Pull request #882 at 3ca0eb1: Blueprint/train car operations UI window
- Pull request #885 at 0a956f5: feat: Add notifications to Menu
- Pull request #886 at 6c0785b: Scene viewer extension to TrackViewer
- Pull request #892 at 1f5ba4c: Signal Function OPP_SIG_ID_TRAINPATH
- Pull request #896 at 5866028: First implementation of https://blueprints.launchpad.net/or/+spec/specific-sounds-for-ai-trains
- Pull request #903 at 7af1f91: Downloading route content (Github, zip)
- Pull request #912 at f7b85e4: New Triple Valve Features Vol. 2
- Pull request #919 at 26cc6a8: Added mouse wheel support for controls which can be moved by pressing t…
- Pull request #923 at cc1b5b6: Add curve squeal to route
- Pull request #924 at 6c2c3cd: Default Asset Improvements
- Pull request #925 at e3b1688: Fix brakeshoe force bug
- Pull request #927 at 7bce293: AI Train Power Supply/Lights Fix
- Pull request #929 at a406a69: Add support for common circuit breaker variants
- Pull request #930 at 42398f4: Further enhancements for duplex locoomotive
- Pull request #932 at 9bdb074: Changed matrix's to matrices
Copy file name to clipboardExpand all lines: Source/Orts.Simulation/Simulation/Physics/Train.cs
+30-31Lines changed: 30 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -2200,42 +2200,41 @@ public virtual void physicsUpdate(float elapsedClockSeconds)
2200
2200
public void UpdateWindComponents()
2201
2201
{
2202
2202
// Gets wind direction and speed, and determines HUD display values for the train as a whole.
2203
-
//These will be representative of the train whilst it is on a straight track, but each wagon will vary when going around a curve.
2203
+
//These will be representative of the train whilst it is on a straight track, but each wagon will vary when going around a curve.
2204
2204
// Note both train and wind direction will be positive between 0 (north) and 180 (south) through east, and negative between 0 (north) and 180 (south) through west
2205
2205
// Wind and train direction to be converted to an angle between 0 and 360 deg.
2206
-
// Calculate Wind speed and direction, and train direction
2207
-
// Update the value of the Wind Speed and Direction for the train
// precipitation will calculate a base coefficient value between 60% (light rain) and 90% (heavy rain) - this will be a factor that is used to adjust the base value
3239
3239
// assume linear value between upper and lower precipitation values. Limits are set in the weather module, ie Rain = 0.01ppm (10) and Snow = 0.005ppm (5)
3240
3240
floatprecGrad=(0.2f-0)/(10f-5f);
@@ -3250,7 +3250,7 @@ public virtual void UpdateFrictionCoefficient(float elapsedClockSeconds)
3250
3250
}
3251
3251
3252
3252
// Adjust adhesion for impact of fog - default = 20000m = 20km
3253
-
floatfog=Simulator.Weather.FogDistance;
3253
+
floatfog=Simulator.Weather.VisibilityM;
3254
3254
if(fog<20000)// as fog thickens then decrease adhesion
3255
3255
{
3256
3256
fogBaseFrictionCoefficientFactor=Math.Min((fog*2.75e-4f+0.6f),1.0f);// If fog is less then 2km then it will impact friction, decrease adhesion to 60% (same as light rain transition)
0 commit comments