Skip to content

Commit 6a55f3b

Browse files
committed
fix: Correct cloud movements against camera
1 parent 1a70945 commit 6a55f3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/RunActivity/Viewer3D/Weather.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// COPYRIGHT 2009 - 2023 by the Open Rails project.
1+
// COPYRIGHT 2009 - 2023 by the Open Rails project.
22
//
33
// This file is part of Open Rails.
44
//
@@ -239,7 +239,7 @@ private void UpdateWind(ElapsedTime elapsedTime)
239239
}
240240

241241
WorldLocation.GetDistance(CameraWorldLocation, Viewer.Camera.CameraWorldLocation).Deconstruct(out var x, out var _, out var y);
242-
CloudPositionM += elapsedTime.ClockSeconds * Weather.WindAverageDirection * Weather.WindAverageSpeedMpS - new Vector2(x, y);
242+
CloudPositionM += elapsedTime.ClockSeconds * Weather.WindAverageDirection * Weather.WindAverageSpeedMpS - new Vector2(x, -y);
243243
CameraWorldLocation = Viewer.Camera.CameraWorldLocation;
244244
}
245245

0 commit comments

Comments
 (0)