To facilitate variation of the physics a known empty and full physics condition needs to be defined for OR. This is done by inserting relevant empty and full physics parameters in the freight animations include file. (Se example code below).
When defining a load variation scenario one of the following two options may be used:
i) Static Load Variation - wagon load is configured when OR is initially loaded, and loading condition does not change throughout the game. The root WAG file conditions are used for the empty condition, and the full ones are inserted from the INCLUDE file. This feature allows a single empty wagon to be configured, and then different loads to be added via freight animations.
At some stage in the future it may be possible to script the full configuration in the CON file by specifying the freight animation load to be used, thus simplifying wagon selection and eliminating the need to duplicate WAG files for loaded and unloaded conditions.
A typical INCLUDE file for a Static
Wagon ( ORTSFreightAnims ( MSTSFreightAnimEnabled (0) WagonEmptyWeight(10.0t-uk) FreightAnimStatic ( SubType(Default) Shape( ..\\common.Loads\\15ft_open\\15ft_3p_HumpSheet2.s ) Offset( 0, 0, 0) FreightWeight( 15.0t-uk ) FullMaxBrakeForce ( 62.275kN ) FullMaxHandbrakeForce ( 9.964kN ) FullORTSDavis_A ( 421.80 ) FullORTSDavis_B ( 12.6850 ) FullORTSDavis_C ( 0.958320 ) FullCentreOfGravity_Y ( 2.0 ) ) ) )
ii) Continuous Load Variation - wagon load varies throughout the game as wagon is load/unloaded at pickup points.
In the case of the continuous load model, both the full and empty physics are included in the INCLUDE file.
Wagon ( ORTSFreightAnims ( MSTSFreightAnimEnabled (0) WagonEmptyWeight(10.0t-uk) EmptyMaxBrakeForce ( 29.892kN ) EmptyMaxHandbrakeForce ( 9.964kN ) EmptyORTSDavis_A ( 580.71 ) EmptyORTSDavis_B ( 5.0148 ) EmptyORTSDavis_C ( 0.694782 ) EmptyCentreOfGravity_Y ( 1.41 ) IsGondola(0) UnloadingStartDelay (5) FreightAnimContinuous ( IntakePoint ( 0.0 6.0 FreightCoal ) Shape(H_Coal.s) MaxHeight(0.1) MinHeight(-0.85) FreightWeightWhenFull(26.0t-uk) FullAtStart( 0 ) FullMaxBrakeForce ( 89.676kN ) FullMaxHandbrakeForce ( 9.964kN ) FullORTSDavis_A ( 748.61 ) FullORTSDavis_B ( 18.0157 ) FullORTSDavis_C ( 0.838530 ) FullCentreOfGravity_Y ( 1.8 ) ) )
It is hoped to extend this functionality to locomotives and tenders thus allowing physics variations as the load varies in the locomotive or tender.