Open Rails

TrainCar Members

TrainCar overview

Public Instance Constructors

TrainCar Overloaded. Initializes a new instance of the TrainCar class.

Public Instance Fields

_AccelerationMpSS
_PrevSpeedMpS
_SpeedMpS
AcceptMUSignals
accumedAcceTime
BrakeForceN
BrakeSystem
CabViewpoints
CarHeatLossWpT
CarHeatPipeAreaM2
CarHeatVolumeM3
CarHeightM
CarID
CarLengthM
CarTunnelData
CarWidthM
CouplerForceA
CouplerForceB
CouplerForceC
CouplerForceG
CouplerForceR
CouplerForceU
CouplerOverloaded
CouplerSlack2M
CouplerSlackM
CurrentCurveRadius
CurrentElevationPercent
currentStiffness
CurveForceN
CurveResistanceSpeedDependent
CurveSpeedDependent
DistanceM
Flipped
FrictionForceN
GravityForceN
HasFreightAnim
HasInsideView
HasPassengerCapacity
Headlight
HeadOutViewpoints
InitialMassKG
IsDriveable
IsFreight
IsMetric
IsPartOfActiveTrain
IsTender
IsUK
lastTime
Lights
LocalGearboxGearIndex
LocalThrottlePercent
MassKG
MotiveForceN
MotiveForceSmoothedN
ORTSFreightAnimData
Parts
PassengerViewpoints
prevElev
PrevMotiveForceN
prevTilted
prevY
prevY2
RealWagFilePath
RealXNAMatrix
Simulator
SoundSourceIDs
SuperElevationMatrix
sx
sy
sz
TotalForceN
totalRotationX
totalRotationZ
TrackSoundDistSquared
TrackSoundLocation
TrackSoundType
Train
TunnelForceN
TunnelResistanceDependent
UiD
Velocity
WagFilePath
WheelAxles
WheelAxlesLoaded
WheelSlip
WheelSlipWarning
WorldPosition

Public Instance Properties

AccelerationMpSS
Direction
DynamicBrakePercent
GearboxGearIndex
HasFrontCab
HasRearCab
IsPlayerTrain
SpeedMpS
ThrottlePercent

Public Instance Methods

AddBogie
AddWheelSet
ComputeMaxXZ
ComputePosition
CopyControllerSettings
CopyCoupler
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetCabFlipped
GetCentreofGravityM
GetCouplerStiffnessNpM
GetCouplerZeroLengthM
GetDebugStatus
GetDriverWheelRadiusM
GetDynamicBrakeStatus
GetEngineBrakeStatus
GetEngineType
GetFilledFraction
GetHashCode (inherited from Object)Serves as a hash function for a particular type.
GetLocoNumWheels
GetMaximumCouplerForceN
GetMaximumCouplerSlack1M
GetMaximumCouplerSlack2M
GetRigidWheelBaseM
GetSanderOn
GetStatus
GetTrackGaugeM
GetTrainBrakeStatus
GetType (inherited from Object)Gets the type of the current instance.
GetUnbalancedSuperElevationM
GetWagonNumWheels
GetWagonType
GetXNAMatrix
Initialize
InitializeMoving
IsOverTrough Checks if traincar is over trough. Used to check if refill possible
Restore
Save
SetUpWheels
SignalEventOverloaded. Signals an event from an external source (player, multi-player controller, etc.) for this car.
SuperElevation
SwitchToAutopilotControl
SwitchToPlayerControl
ToString (inherited from Object)Returns a string that represents the current object.
Update
UpdateCarriageHeatLoss This section calculates the heat loss in a carriage, and is used in conjunction with steam heating. Overall heat loss is made up of the following components - heat loss due to transmission through walls, windows, doors, floors and more (W) + heat loss caused by ventilation (W) + heat loss caused by infiltration (W)
UpdateCurveForce Reads current curve radius and computes the CurveForceN friction. Can be overriden by calling base.UpdateCurveForce(); CurveForceN *= someCarSpecificCoef;
UpdateCurveSpeedLimit Reads current curve radius and computes the maximum recommended speed around the curve based upon the superelevation of the track
UpdateSoundPosition
UpdateTunnelForce Tunnel force (resistance calculations based upon formula presented in papaer titled "Reasonable compensation coefficient of maximum gradient in long railway tunnels"

Protected Instance Methods

Finalize (inherited from Object)Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

TrainCar Class | ORTS Namespace