//---------------elementy dla zwrotnicy lewej W=1.435m L=34m R=300m -----------------------------
//param: nazwa, x, y, z, kat, tekstura podsypki, np. zwrot34r300pods.tex zwrot34r300pods-new.tex

origin (p2) (p3) (p4)
rotate 0 (p5) 0

//---model latarni zwrotnika wraz z podstawa
//node -1 0 (p1)_Wz model (p2) (p3) (p4) (p5) WzLL.t3d none endmodel
node -1 0 (p1)_Wz model -1.9 -0.04 -0.4 180 WzA.t3d WzL endmodel

//---animacja latarni zwrotnika
event (p1)_Wz1 animation 0.5 (p1)_Wz rotate Wz 0 0 0 100 endevent
event (p1)_Wz2 animation 0.5 (p1)_Wz rotate Wz 0 0 90 100 endevent

//---przelaczanie zwrotnicy o nazwie (p1)
event (p1)_0 switch 0.0 (p1) 0 endevent
event (p1)_1 switch 0.0 (p1) 1 endevent

//---ustawianie ograniczenia predkosci 
event (p1)_Vmax trackvel 0.0 (p1) -1 endevent
event (p1)_V40 trackvel 0.0 (p1) 40.0 endevent

//---globalne (zewnetrzne) procedury sterujace:
event (p1)- multiple 1 none (p1)_Wz1 (p1)_0 (p1)_Vmax endevent
event (p1)+ multiple 1 none (p1)_Wz2 (p1)_1 (p1)_V40 endevent




rotate 0 0 0
endorigin
