コード例 #1
0
 /// <summary>Creates a new axle</summary>
 public Axle(Hosts.HostInterface currentHost, AbstractTrain Train, AbstractCar Car, double CoefficientOfFriction = 0.35, double CoefficentOfRollingResistance = 0.0025, double AerodynamicDragCoefficient = 1.1)
 {
     Follower = new TrackFollower(currentHost, Train, Car);
     baseCar  = Car;
     coefficientOfFriction          = CoefficientOfFriction;
     coefficientOfRollingResistance = CoefficentOfRollingResistance;
     aerodynamicDragCoefficient     = AerodynamicDragCoefficient;
 }
コード例 #2
0
ファイル: AbstractTrain.cs プロジェクト: xfleet/OpenBVE
 /// <summary>Derails a car within the train</summary>
 /// <param name="Car">The car to derail</param>
 /// <param name="ElapsedTime">The frame time elapsed</param>
 public virtual void Derail(AbstractCar Car, double ElapsedTime)
 {
 }