OpenBve.TrainManager.Train.Topple C# (CSharp) Method

Topple() private method

Call this method to topple a car
private Topple ( int CarIndex, double ElapsedTime ) : void
CarIndex int The car index to derail
ElapsedTime double The elapsed time for this frame (Used for logging)
return void
			internal void Topple(int CarIndex, double ElapsedTime)
			{
				this.Cars[CarIndex].Topples = true;
				if (Program.GenerateDebugLogging)
				{
					Program.AppendToLogFile("Train " + TrainIndex + ", Car " + CarIndex + " toppled. Current simulation time: " + Game.SecondsSinceMidnight + " Current frame time: " + ElapsedTime);
				}
			}
		}
TrainManager.Train