Skip to content

Commit b509983

Browse files
committed
Update OR manual for 2D cab wipers
1 parent 07369f3 commit b509983

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

Source/Documentation/Manual/cabs.rst

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,69 @@ ORTS_SIGNED_TRACTION_BRAKING, with the only difference that the braking
262262
force does include also the train brake force in addition to the dynamic
263263
brake force.
264264

265+
Animated 2D Wipers
266+
------------------
267+
268+
.. index::
269+
single: ORTS_2DEXTERNALWIPERS
270+
271+
This control animates the wipers as seen from a 2D cab.
272+
Animation is triggered on/off through key V.
273+
274+
Here is an example of a 2D wipers control block within the .cvf file::
275+
276+
277+
ORTSAnimatedDisplay (
278+
Type ( ORTS_2DEXTERNALWIPERS MULTI_STATE_DISPLAY )
279+
Position ( 155 0 331.875 236.25 )
280+
Graphic ( ..//..//Common.Cab//CabE464_DMI//e464Tergicristallo9.ace )
281+
ORTSCycleTime ( 1.35 )
282+
States ( 9 3 3
283+
State (
284+
Style ( 0 )
285+
SwitchVal ( 0 )
286+
)
287+
State (
288+
Style ( 0 )
289+
SwitchVal ( 0.11 )
290+
)
291+
State (
292+
Style ( 0 )
293+
SwitchVal ( 0.22 )
294+
)
295+
State (
296+
Style ( 0 )
297+
SwitchVal ( 0.33 )
298+
)
299+
State (
300+
Style ( 0 )
301+
SwitchVal ( 0.44 )
302+
)
303+
State (
304+
Style ( 0 )
305+
SwitchVal ( 0.55 )
306+
)
307+
State (
308+
Style ( 0 )
309+
SwitchVal ( 0.66 )
310+
)
311+
State (
312+
Style ( 0 )
313+
SwitchVal ( 0.77 )
314+
)
315+
State (
316+
Style ( 0 )
317+
SwitchVal ( 0.88 )
318+
)
319+
)
320+
)
321+
322+
ORTSCycleTime is expressed in seconds.
323+
The .ace file must contain only the frames related to half cycle, that is
324+
if e.g. the wiper moves from left to right and back, only the frames related
325+
to the motion from left to right have to be included. For the reverse
326+
motion the same frames are used from last to first. SwitchVal can vary from 0 to 1.
327+
265328
Further OR cab controls
266329
-----------------------
267330

0 commit comments

Comments
 (0)