#VRML V2.0 utf8 ###---------------------------------------------### ### Buitenkant van de tram ### ###---------------------------------------------### PROTO Raam[ ] { # links van raam # Transform { translation -0.705 -1.45 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Tramtext.jpg" } material Material { diffuseColor 1 1 1 } } geometry Box { size 0.17 3.5 0.05 } } ] } # Boven raam # Transform { children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Bovenraam.jpg" } } geometry Box { size 1.24 0.6 0.05 } } ] } # Onder raam # Transform { translation 0 -2.6 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Onderraam.jpg" } } geometry Box { size 1.24 1.2 0.05 } } ] } # Rechts van raam # Transform { translation 0.79 -1.45 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Tramtext.jpg" } } geometry Box { size 0.34 3.5 0.05 } } ] } # Glas # Transform { translation 0 -1.15 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.3 0.5 transparency 0.6 } } geometry Box { size 1.24 1.7 0.05 } } ] } } PROTO Deuropening[ ] { ###--- De rode rand ---### Transform { children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Deur.jpg" } } geometry Box { size 2.5 0.1 0.05 } } ] } Transform { translation -1.3 -1.7 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Deur.jpg" } } geometry Box { size 0.1 3.5 0.05 } } ] } Transform { translation 1.3 -1.7 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Deur.jpg" } } geometry Box { size 0.1 3.5 0.05 } } ] } ###--- De zwarte rand ---### Transform { translation 0 -0.05 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Deurband.jpg" } } geometry Box { size 2.5 0.05 0.1 } } ] } Transform { translation -1.225 -1.765 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Deurband.jpg" } } geometry Box { size 0.05 3.37 0.1 } } ] } Transform { translation 1.225 -1.765 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Deurband.jpg" } } geometry Box { size 0.05 3.37 0.1 } } ] } } PROTO Deur [ ] { # stukje naast raam # Transform { translation -0.5 -1.45 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Deur.jpg" } } geometry Box { size 0.2 3.35 0.05 } } ] } # Stukje boven raam # Transform { children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Deur.jpg" } } geometry Box { size 0.8 0.45 0.05 } } ] } # stukje naast raam rechts # Transform { translation 0.45 -1.45 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Deur.jpg" } } geometry Box { size 0.1 3.35 0.05 } } ] } # onder raam # Transform { translation 0 -2.525 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Deur.jpg" } } geometry Box { size 0.8 1.2 0.05 } } ] } # zwarte band # Transform { translation 0.55 -1.45 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Deurband.jpg" } } geometry Box { size 0.1 3.35 0.1 } } ] } # Deurraam # Transform { translation 0 -1.075 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.3 0.5 transparency 0.6 } } geometry Box { size 0.8 1.7 0.05 } } ] } } PROTO Voorkant [ ] { #-------------# # Enkele raam # #-------------# # Zijkant raam 1 # Transform { translation 1.2 -1.45 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Tramtext.jpg" } } geometry Box { size 0.4 3.5 0.05 } } ] } # Bovenkant raam # Transform { children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Bovenraam.jpg" } } geometry Box { size 2 0.6 0.05 } } ] } # Onderkant raam # Transform { translation 0 -2.6 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Onderraam.jpg" } } geometry Box { size 2 1.2 0.05 } } ] } # Zijkant raam 2# Transform { translation -1.075 -1.45 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Zijkant.jpg" } } geometry Box { size 0.15 3.5 0.05 } } ] } # Glas # Transform { translation 0 -1.15 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.3 0.5 transparency 0.6 } } geometry Box { size 2 1.7 0.05 } } ] } # Rooster onderkant raam # Transform { translation 0 -2.9 0.0005 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Kieuwen.jpg" } } geometry Box { size 1.8 0.6 0.05 } } ] } } ### Conducteur ### PROTO Conducteur [] { ###--- Deur Conducteur ---### Transform { translation -2.15 -1.45 -0.25 rotation 0 1 0 -0.2 children [ DEF Deur Shape { appearance Appearance { texture ImageTexture { url "tramtextures/DeurConducteur.jpg" } } geometry Box { size 2.1 3.5 0.05 } } ] } Transform { translation -2.15 -1.45 -3.25 rotation 0 1 0 0.2 children [ USE Deur ] } Transform { translation -3.55 -2.625 -0.53 rotation 0 1 0 -0.2 children [ DEF Voorstukje1 Shape { appearance Appearance { texture ImageTexture { url "tramtextures/voorstukje1.jpg" } } geometry Box { size 0.75 1.16 0.05 } } ] } Transform { translation -1.15 -1.45 -1.75 children [ Shape { appearance Appearance { material Material { diffuseColor 0.5 0.5 0.5 } } geometry Box { size 0.05 3.4 3.4 } } ] } ###--- Zijraam ---### Transform { translation -3.55 -2.05 -0.51 rotation 0 1 0 -0.2 children [ DEF Zijraam Shape { appearance Appearance { material Material { diffuseColor 0.137 0.204 0.243 } } geometry IndexedFaceSet { coord Coordinate { point [ -0.375 0 0, 0.375 0 0, 0.375 0 -0.05, -0.375 0 -0.05 0.15 1.45 0, 0.375 1.45 0, 0.375 1.45 -0.05, 0.15 1.45 -0.05 ] } coordIndex [ 0 4 7 3 -1 0 1 2 3 -1 0 1 5 4 -1 1 2 6 5 -1 4 5 6 7 -1 2 3 7 6 -1 ] solid FALSE } } ] } Transform { translation -3.55 -2.625 -2.97 rotation 0 1 0 0.2 children [ USE Voorstukje1 ] } ###--- Zijraam andere kant ---### Transform { translation -3.55 -2.05 -2.95 rotation 0 1 0 0.2 children [ USE Zijraam ] } ###--- De koplampen ---### Transform { translation -3.925 -2.625 -1.75 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/koplampen.jpg" } } geometry Box { size 0.005 1.16 2.33 } } ] } ###--- Voorruit ---### Transform { translation -3.67 -1.315 -1.75 rotation 0 0 1 -0.35 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/voorruit.jpg" } } geometry IndexedFaceSet { coord Coordinate { point [ 0 -0.775 1.175, 0.005 -0.775 1.175, 0.005 -0.775 -1.175, 0 -0.775 -1.175 0 0.775 1.27, 0.005 0.775 1.27, 0.005 0.775 -1.27, 0 0.775 -1.27 ] } coordIndex [ 0 4 7 3 -1 0 1 2 3 -1 0 1 5 4 -1 1 2 6 5 -1 4 5 6 7 -1 2 3 7 6 -1 ] solid FALSE } } ] } ###--- 51 Centraal Station ---### Transform { translation -3.4 -0.15 -1.75 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/51CS.jpg" } } geometry Box { size 0.005 0.9 2.55 } } ] } Transform { translation -3.28 -0.15 -0.48 rotation 0 1 0 -0.2 children [ DEF bovenzijraam Shape { appearance Appearance { texture ImageTexture { url "tramtextures/bovenZijraam.jpg" } } geometry Box { size 0.23 0.9 0.05 } } ] } Transform { translation -3.28 -0.15 -3.03 rotation 0 1 0 0.2 children [ USE bovenzijraam ] } Transform { translation -2.95 0.42 -0.41 rotation 0 1 0 -0.2 children [ DEF boven Shape { appearance Appearance { texture ImageTexture { url "tramtextures/boven.jpg" } } geometry Box { size 0.9 0.25 0.05 } } ] } Transform { translation -2.95 0.42 -3.1 rotation 0 1 0 0.2 children [ USE boven ] } ###--- Dak 1 ---### Transform { translation -2.95 0.53 -1.75 children [ Shape { appearance Appearance { material Material { diffuseColor 0.5 0.5 0.5 } } geometry IndexedFaceSet { coord Coordinate { point [ -0.45 -0.025 1.26, 0.45 -0.025 1.44, 0.45 -0.025 -1.44, -0.45 -0.025 -1.26 -0.45 0.025 1.26, 0.45 0.025 1.44, 0.45 0.025 -1.44, -0.45 0.025 -1.26 ] } coordIndex [ 0 4 7 3 -1 0 1 2 3 -1 0 1 5 4 -1 1 2 6 5 -1 4 5 6 7 -1 2 3 7 6 -1 ] solid FALSE } } ] } ###--- Dak 2 ---### Transform { translation -2.25 0.52 -1.75 rotation 0 0 1 -0.1 children [ Shape { appearance Appearance { material Material { diffuseColor 0.5 0.5 0.5 } } geometry IndexedFaceSet { coord Coordinate { point [ -0.25 -0.025 1.44, 0.25 -0.025 1.54, 0.25 -0.025 -1.54, -0.25 -0.025 -1.44 -0.25 0.025 1.44, 0.25 0.025 1.54, 0.25 0.025 -1.54, -0.25 0.025 -1.44 ] } coordIndex [ 0 4 7 3 -1 0 1 2 3 -1 0 1 5 4 -1 1 2 6 5 -1 4 5 6 7 -1 2 3 7 6 -1 ] solid FALSE } } ] } ###--- Dak 3 ---### Transform { translation -1.5 0.49 -1.75 children [ Shape { appearance Appearance { material Material { diffuseColor 0.5 0.5 0.5 } } geometry IndexedFaceSet { coord Coordinate { point [ -0.5 -0.025 1.55, 0.5 -0.025 1.7, 0.5 -0.025 -1.7, -0.5 -0.025 -1.45 -0.5 0.025 1.55, 0.5 0.025 1.7, 0.5 0.025 -1.7, -0.5 0.025 -1.45 ] } coordIndex [ 0 4 7 3 -1 0 1 2 3 -1 0 1 5 4 -1 1 2 6 5 -1 4 5 6 7 -1 2 3 7 6 -1 ] solid FALSE } } ] } ###--- Schuin stukje boven ---### Transform { translation -2.26 0.42 -0.27 rotation 0 1 0 -0.2 children [ DEF SchuinBoven Shape { appearance Appearance { texture ImageTexture { url "tramtextures/SchuinStukje.jpg" } } geometry IndexedFaceSet { coord Coordinate { point [ -0.25 -0.125 0.025, 0.25 -0.125 0.025, 0.25 -0.125 -0.025, -0.25 -0.125 -0.025 -0.25 0.125 0.025, 0.25 0.06 0.025, 0.25 0.06 -0.025, -0.25 0.125 -0.025 ] } coordIndex [ 0 4 7 3 -1 0 1 2 3 -1 0 1 5 4 -1 1 2 6 5 -1 4 5 6 7 -1 2 3 7 6 -1 ] solid FALSE } } ] } Transform { translation -2.26 0.42 -3.22 rotation 0 1 0 0.2 children [ USE SchuinBoven ] } ###--- Stukje boven CS 51 ---### Transform { translation -3.4 0.42 -1.75 children [ Shape { appearance Appearance { material Material { diffuseColor 0.137 0.204 0.243 } } geometry Box { size 0.005 0.25 2.55 } } ] } ###--- Bovenstukje ---### Transform { translation -1.52 0.39 -0.14 rotation 1 0 0 -0.4 rotation 0 1 0 -0.15 children [ DEF Bovenstukje Shape { appearance Appearance { material Material { diffuseColor 0.718 0.793 0.816 } } geometry Box { size 0.97 0.2 0.05 } } ] } Transform { translation -1.52 0.39 -3.4 rotation 1 0 0 0.4 rotation 0 1 0 0.15 children [ USE Bovenstukje ] } ###--- Balken onderaan ---### Transform { translation -2.5 -3.3 -0.3 rotation 0 1 0 -0.2 children [ DEF Balk Shape { appearance Appearance { texture ImageTexture { url "tramtextures/onderbalk.jpg" } } geometry Box { size 2.85 0.2 0.05 } } ] } Transform { translation -2.5 -3.3 -3.2 rotation 0 1 0 0.2 children [ USE Balk ] } Transform { translation -3.9 -3.3 -1.75 rotation 0 1 0 -1.57 scale 0.83 1 1 children [ USE Balk ] } ###--- Box onder conducteur ---### Transform { translation -2.2 -3.8 -1.7 children [ Shape { appearance Appearance { material Material { diffuseColor 0.224 0.184 0.137 } } geometry Box { size 2.3 1 2 } } ] } } ### Onderkant tram ### PROTO Onderkant [ field SFVec3f translatie 0 0 0 field SFRotation rotatie 0 0 0 0 ] { Transform { translation IS translatie rotation IS rotatie children [ ###--- Blauwe balk ---### Transform { children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Blauwebalk.jpg" } } geometry Box { size 18.7 0.2 0.05 } } ] } ###--- Grijze balk ---### Transform { translation 0.5 -0.25 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Grijzebalk.jpg" } } geometry Box { size 17.3 0.2 0.05 } } ] } ] } } PROTO Grond [ ] { Transform { children [ Shape { appearance Appearance { material Material { diffuseColor 0.718 0.793 0.816 } } geometry Box { size 38 0.05 3.4 } } ] } } PROTO Wielen [ ] { ###--- Box onder tram ---### Transform { translation 9 -4.2 -1.75 children [ Shape { appearance Appearance { material Material { diffuseColor 0.224 0.184 0.137 } } geometry Box { size 39 1 3 } } ] } ###--- Wielen ---### Transform { rotation 1 0 0 1.57 translation 7.8 -4.7 -1.75 children [ DEF Wiel Shape { appearance Appearance { material Material { diffuseColor 0.224 0.184 0.137 } } geometry Cylinder { height 3.2 radius 0.7 } } ] } Transform { translation 10.5 -4.7 -1.75 rotation 1 0 0 1.57 children [ USE Wiel ] } Transform { translation 3 -4.7 -1.75 rotation 1 0 0 1.57 children [ USE Wiel ] } Transform { translation -3.3 -4.7 -1.75 rotation 1 0 0 1.57 children [ USE Wiel ] } Transform { translation -9 -4.7 -1.75 rotation 1 0 0 1.57 children [ USE Wiel ] } Transform { translation 15.2 -4.7 -1.75 rotation 1 0 0 1.57 children [ USE Wiel ] } Transform { translation 21.5 -4.7 -1.75 rotation 1 0 0 1.57 children [ USE Wiel ] } Transform { translation 27 -4.7 -1.75 rotation 1 0 0 1.57 children [ USE Wiel ] } } ### Schuine bovenkant ### PROTO SchuinBoven [ field SFVec3f translatie 0 0 0 field SFRotation rotatie 0 0 0 0 ] { Transform { translation IS translatie rotation IS rotatie children [ Transform { rotation 1 0 0 -0.4 children [ Shape { appearance Appearance { material Material { diffuseColor 0.718 0.793 0.816 } } geometry Box { size 18.6 0.2 0.05 } } ] } ] } } PROTO Dak [ ] { Transform { children [ Shape { appearance Appearance { material Material { diffuseColor 0.718 0.793 0.816 } } geometry Box { size 38 0.05 3.4 } } ] } } PROTO Bovenleiding[] { Transform { rotation 0 0 1 0.78 children [ DEF buis Shape { appearance Appearance { material Material { diffuseColor 0.196 0.271 0.255 } } geometry Cylinder { height 2 radius 0.06 } } ] } Transform { translation 3 0 0 rotation 0 0 1 -0.78 children [ USE buis ] } Transform { translation -0.57 0.6 0 rotation 1 0 0 1.57 children [ DEF staafje Shape { appearance Appearance { material Material { diffuseColor 0.196 0.271 0.255 } } geometry Cylinder { height 0.5 radius 0.03 } } ] } Transform { translation 3.57 0.6 0 rotation 1 0 0 1.57 children [ USE staafje ] } Transform { translation 0.32 1.39 0.23 rotation 0 0 1 -0.85 children [ DEF draad Shape { appearance Appearance { material Material { diffuseColor 0.196 0.271 0.255 } } geometry Cylinder { height 2.4 radius 0.02 } } ] } Transform { translation 2.66 1.39 0.23 rotation 0 0 1 0.85 children [ USE draad ] } Transform { translation 0.32 1.39 -0.23 rotation 0 0 1 -0.85 children [ USE draad ] } Transform { translation 2.66 1.39 -0.23 rotation 0 0 1 0.85 children [ USE draad ] } Transform { translation 1.25 2.2 0 children [ DEF bovendraad Shape { appearance Appearance { material Material { diffuseColor 0.196 0.271 0.255 } } geometry Box { size 0.04 0.01 2 } } ] } Transform { translation 1.75 2.2 0 children [ USE bovendraad ] } Transform { translation 1.25 2.1 1.1 rotation 1 0 0 0.78 children [ DEF bovendraadstukje Shape { appearance Appearance { material Material { diffuseColor 0.196 0.271 0.255 } } geometry Box { size 0.04 0.01 0.3 } } ] } Transform { translation 1.75 2.1 1.1 rotation 1 0 0 0.78 children [ USE bovendraadstukje ] } Transform { translation 1.25 2.1 -1.1 rotation 1 0 0 -0.78 children [ USE bovendraadstukje ] } Transform { translation 1.75 2.1 -1.1 rotation 1 0 0 -0.78 children [ USE bovendraadstukje ] } Transform { translation 1.55 -0.7 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.196 0.271 0.255 } } geometry Box { size 1.6 0.3 1.5 } } ] } } PROTO RamenEnDeuren[ field SFVec3f translatie 0 0 0 field SFRotation rotatie 0 0 0 0 ] { Transform { translation IS translatie rotation IS rotatie children [ Deuropening {} Transform { translation -2.325 -0.25 0 children [ Raam {} ] } Transform { rotation 0 1 0 3.14 translation -3.9 -0.25 0 children [ Raam {} ] } Transform { translation -6.2 0 0 children [ Deuropening {} ] } Transform { rotation 0 1 0 3.14 translation 2.325 -0.25 0 children [ Raam {} ] } Transform { translation 3.9 -0.25 0 children [ Raam {} ] } Transform { translation 6.2 0 0 children [ Deuropening {} ] } ] } } ###---------------------------------------------### ### Deuren openmaken ### ###---------------------------------------------### PROTO Deuren [] { DEF Deur11 Transform { translation -0.6 -0.325 0 children [ Deur {} ] } Transform { translation -0.6 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop11 Transform { translation -1.83 -2.45 0.04 children [ DEF Deurknop11touch TouchSensor {} DEF Deurknop Shape { appearance Appearance { texture ImageTexture { url "tramtextures/deurknop.jpg" } } geometry Box { size 0.25 0.15 0.001 } } ] } Transform { translation -1.83 -2.45 -3.54 children [ USE Deurknop ] } DEF Deur12 Transform { rotation 0 1 0 3.14 translation 0.6 -0.325 0 children [ Deur {} ] } Transform { rotation 0 1 0 3.14 translation 0.6 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop12 Transform { translation 1.83 -2.45 0.04 children [ DEF Deurknop12touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop13 Transform { translation -1.45 -2.45 -0.1 children [ DEF Deurknop13touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop14 Transform { translation 1.47 -2.45 -0.1 children [ DEF Deurknop14touch TouchSensor {} USE Deurknop ] } Transform { translation 1.83 -2.45 -3.54 children [ USE Deurknop ] } DEF Deur21 Transform { translation -6.8 -0.325 0 children [ Deur {} ] } Transform { translation -6.8 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop21 Transform { translation -8.03 -2.45 0.04 children [ DEF Deurknop21touch TouchSensor {} USE Deurknop ] } Transform { translation -8.03 -2.45 -3.54 children [ USE Deurknop ] } DEF Deur22 Transform { rotation 0 1 0 3.14 translation -5.6 -0.325 0 children [ Deur {} ] } Transform { rotation 0 1 0 3.14 translation -5.6 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop22 Transform { translation -4.37 -2.45 0.04 children [ DEF Deurknop22touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop23 Transform { translation -7.69 -2.45 -0.1 children [ DEF Deurknop23touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop24 Transform { translation -4.75 -2.45 -0.1 children [ DEF Deurknop24touch TouchSensor {} USE Deurknop ] } Transform { translation -4.37 -2.45 -3.54 children [ USE Deurknop ] } DEF Deur31 Transform { translation 5.6 -0.325 0 children [ Deur {} ] } Transform { translation 5.6 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop31 Transform { translation 4.37 -2.45 0.04 children [ DEF Deurknop31touch TouchSensor {} USE Deurknop ] } Transform { translation 4.37 -2.45 -3.54 children [ USE Deurknop ] } DEF Deur32 Transform { rotation 0 1 0 3.14 translation 6.8 -0.325 0 children [ Deur {} ] } Transform { rotation 0 1 0 3.14 translation 6.8 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop32 Transform { translation 8.03 -2.45 0.04 children [ DEF Deurknop32touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop33 Transform { translation 4.73 -2.45 -0.1 children [ DEF Deurknop33touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop34 Transform { translation 7.74 -2.45 -0.1 children [ DEF Deurknop34touch TouchSensor {} USE Deurknop ] } Transform { translation 8.03 -2.45 -3.54 children [ USE Deurknop ] } DEF Deur41 Transform { translation 11.4 -0.325 0 children [ Deur {} ] } Transform { translation 11.4 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop41 Transform { translation 10.17 -2.45 0.04 children [ DEF Deurknop41touch TouchSensor {} USE Deurknop ] } Transform { translation 10.17 -2.45 -3.54 children [ USE Deurknop ] } DEF Deur42 Transform { rotation 0 1 0 3.14 translation 12.6 -0.325 0 children [ Deur {} ] } Transform { rotation 0 1 0 3.14 translation 12.6 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop42 Transform { translation 13.83 -2.45 0.04 children [ DEF Deurknop42touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop43 Transform { translation 10.5 -2.45 -0.1 children [ DEF Deurknop43touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop44 Transform { translation 13.47 -2.45 -0.1 children [ DEF Deurknop44touch TouchSensor {} USE Deurknop ] } Transform { translation 13.83 -2.45 -3.54 children [ USE Deurknop ] } DEF Deur51 Transform { translation 17.6 -0.325 0 children [ Deur {} ] } Transform { translation 17.6 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop51 Transform { translation 16.37 -2.45 0.04 children [ DEF Deurknop51touch TouchSensor {} USE Deurknop ] } Transform { translation 16.37 -2.45 -3.54 children [ USE Deurknop ] } DEF Deur52 Transform { rotation 0 1 0 3.14 translation 18.8 -0.325 0 children [ Deur {} ] } Transform { rotation 0 1 0 3.14 translation 18.8 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop52 Transform { translation 20.03 -2.45 0.04 children [ DEF Deurknop52touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop53 Transform { translation 16.73 -2.45 -0.1 children [ DEF Deurknop53touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop54 Transform { translation 19.66 -2.45 -0.1 children [ DEF Deurknop54touch TouchSensor {} USE Deurknop ] } Transform { translation 20.03 -2.45 -3.54 children [ USE Deurknop ] } DEF Deur61 Transform { translation 23.8 -0.325 0 children [ Deur {} ] } Transform { translation 23.8 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop61 Transform { translation 22.57 -2.45 0.05 children [ DEF Deurknop61touch TouchSensor {} USE Deurknop ] } Transform { translation 22.57 -2.45 -3.55 children [ USE Deurknop ] } DEF Deur62 Transform { rotation 0 1 0 3.14 translation 25 -0.325 0 children [ Deur {} ] } Transform { rotation 0 1 0 3.14 translation 25 -0.325 -3.5 children [ Deur {} ] } ### deurknop buiten ### DEF Deurknop62 Transform { translation 26.27 -2.49 0.05 children [ DEF Deurknop62touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop63 Transform { translation 22.92 -2.49 -0.1 children [ DEF Deurknop63touch TouchSensor {} USE Deurknop ] } ### deurknop binnen ### DEF Deurknop64 Transform { translation 25.87 -2.49 -0.1 children [ DEF Deurknop64touch TouchSensor {} USE Deurknop ] } Transform { translation 26.3 -2.49 -3.55 children [ USE Deurknop ] } ### Beweging deuren ### DEF DeurBeweging11 TimeSensor { cycleInterval 10 loop FALSE } DEF DeurBeweging12 TimeSensor { cycleInterval 10 loop FALSE } DEF DeurBeweging21 TimeSensor { cycleInterval 10 loop FALSE } DEF DeurBeweging22 TimeSensor { cycleInterval 10 loop FALSE } DEF DeurBeweging31 TimeSensor { cycleInterval 10 loop FALSE } DEF DeurBeweging32 TimeSensor { cycleInterval 10 loop FALSE } DEF DeurBeweging41 TimeSensor { cycleInterval 10 loop FALSE } DEF DeurBeweging42 TimeSensor { cycleInterval 10 loop FALSE } DEF DeurBeweging51 TimeSensor { cycleInterval 10 loop FALSE } DEF DeurBeweging52 TimeSensor { cycleInterval 10 loop FALSE } DEF DeurBeweging61 TimeSensor { cycleInterval 10 loop FALSE } DEF DeurBeweging62 TimeSensor { cycleInterval 10 loop FALSE } DEF bewegingDeur11 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [-0.6 -0.325 0, -0.6 -0.325 0.5, -1.6 -0.325 0.5, -1.6 -0.325 0.5, -0.6 -0.325 0.5, -0.6 -0.325 0 ] } DEF bewegingDeur12 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [0.6 -0.325 0, 0.6 -0.325 0.5, 1.6 -0.325 0.5, 1.6 -0.325 0.5, 0.6 -0.325 0.5, 0.6 -0.325 0] } DEF bewegingDeur21 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [-6.8 -0.325 0, -6.8 -0.325 0.5, -7.8 -0.325 0.5, -7.8 -0.325 0.5, -6.8 -0.325 0.5, -6.8 -0.325 0] } DEF bewegingDeur22 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [-5.6 -0.325 0, -5.6 -0.325 0.5, -4.6 -0.325 0.5, -4.6 -0.325 0.5, -5.6 -0.325 0.5, -5.6 -0.325 0] } DEF bewegingDeur31 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [5.6 -0.325 0, 5.6 -0.325 0.5, 4.6 -0.325 0.5, 4.6 -0.325 0.5, 5.6 -0.325 0.5, 5.6 -0.325 0] } DEF bewegingDeur32 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [6.8 -0.325 0, 6.8 -0.325 0.5, 7.8 -0.325 0.5, 7.8 -0.325 0.5, 6.8 -0.325 0.5, 6.8 -0.325 0] } DEF bewegingDeur41 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [11.4 -0.325 0, 11.4 -0.325 0.5, 10.4 -0.325 0.5, 10.4 -0.325 0.5, 11.4 -0.325 0.5, 11.4 -0.325 0] } DEF bewegingDeur42 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [12.6 -0.325 0, 12.6 -0.325 0.5, 13.6 -0.325 0.5, 13.6 -0.325 0.5, 12.6 -0.325 0.5, 12.6 -0.325 0] } DEF bewegingDeur51 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [17.6 -0.325 0, 17.6 -0.325 0.5, 16.6 -0.325 0.5, 16.6 -0.325 0.5, 17.6 -0.325 0.5, 17.6 -0.325 0] } DEF bewegingDeur52 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [18.8 -0.325 0, 18.8 -0.325 0.5, 19.8 -0.325 0.5, 19.8 -0.325 0.5, 18.8 -0.325 0.5, 18.8 -0.325 0] } DEF bewegingDeur61 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [23.8 -0.325 0, 23.8 -0.325 0.5, 22.8 -0.325 0.5, 22.8 -0.325 0.5, 23.8 -0.325 0.5, 23.8 -0.325 0] } DEF bewegingDeur62 PositionInterpolator { key [ 0, 0.05, 0.1, 0.9, 0.95, 1] keyValue [25 -0.325 0, 25 -0.325 0.5, 26 -0.325 0.5, 26 -0.325 0.5, 25 -0.325 0.5, 25 -0.325 0] } ROUTE DeurBeweging11.fraction_changed TO bewegingDeur11.set_fraction ROUTE DeurBeweging12.fraction_changed TO bewegingDeur12.set_fraction ROUTE DeurBeweging21.fraction_changed TO bewegingDeur21.set_fraction ROUTE DeurBeweging22.fraction_changed TO bewegingDeur22.set_fraction ROUTE DeurBeweging31.fraction_changed TO bewegingDeur31.set_fraction ROUTE DeurBeweging32.fraction_changed TO bewegingDeur32.set_fraction ROUTE DeurBeweging41.fraction_changed TO bewegingDeur41.set_fraction ROUTE DeurBeweging42.fraction_changed TO bewegingDeur42.set_fraction ROUTE DeurBeweging51.fraction_changed TO bewegingDeur51.set_fraction ROUTE DeurBeweging52.fraction_changed TO bewegingDeur52.set_fraction ROUTE DeurBeweging61.fraction_changed TO bewegingDeur61.set_fraction ROUTE DeurBeweging62.fraction_changed TO bewegingDeur62.set_fraction ROUTE bewegingDeur11.value_changed TO Deur11.set_translation ROUTE bewegingDeur12.value_changed TO Deur12.set_translation ROUTE bewegingDeur21.value_changed TO Deur21.set_translation ROUTE bewegingDeur22.value_changed TO Deur22.set_translation ROUTE bewegingDeur31.value_changed TO Deur31.set_translation ROUTE bewegingDeur32.value_changed TO Deur32.set_translation ROUTE bewegingDeur41.value_changed TO Deur41.set_translation ROUTE bewegingDeur42.value_changed TO Deur42.set_translation ROUTE bewegingDeur51.value_changed TO Deur51.set_translation ROUTE bewegingDeur52.value_changed TO Deur52.set_translation ROUTE bewegingDeur61.value_changed TO Deur61.set_translation ROUTE bewegingDeur62.value_changed TO Deur62.set_translation ROUTE Deurknop11touch.touchTime TO DeurBeweging11.startTime ROUTE Deurknop12touch.touchTime TO DeurBeweging11.startTime ROUTE Deurknop11touch.touchTime TO DeurBeweging12.startTime ROUTE Deurknop12touch.touchTime TO DeurBeweging12.startTime ROUTE Deurknop13touch.touchTime TO DeurBeweging11.startTime ROUTE Deurknop14touch.touchTime TO DeurBeweging11.startTime ROUTE Deurknop13touch.touchTime TO DeurBeweging12.startTime ROUTE Deurknop14touch.touchTime TO DeurBeweging12.startTime ROUTE Deurknop21touch.touchTime TO DeurBeweging21.startTime ROUTE Deurknop22touch.touchTime TO DeurBeweging21.startTime ROUTE Deurknop21touch.touchTime TO DeurBeweging22.startTime ROUTE Deurknop22touch.touchTime TO DeurBeweging22.startTime ROUTE Deurknop23touch.touchTime TO DeurBeweging21.startTime ROUTE Deurknop24touch.touchTime TO DeurBeweging21.startTime ROUTE Deurknop23touch.touchTime TO DeurBeweging22.startTime ROUTE Deurknop24touch.touchTime TO DeurBeweging22.startTime ROUTE Deurknop31touch.touchTime TO DeurBeweging31.startTime ROUTE Deurknop32touch.touchTime TO DeurBeweging31.startTime ROUTE Deurknop31touch.touchTime TO DeurBeweging32.startTime ROUTE Deurknop32touch.touchTime TO DeurBeweging32.startTime ROUTE Deurknop33touch.touchTime TO DeurBeweging31.startTime ROUTE Deurknop34touch.touchTime TO DeurBeweging31.startTime ROUTE Deurknop33touch.touchTime TO DeurBeweging32.startTime ROUTE Deurknop34touch.touchTime TO DeurBeweging32.startTime ROUTE Deurknop41touch.touchTime TO DeurBeweging41.startTime ROUTE Deurknop42touch.touchTime TO DeurBeweging41.startTime ROUTE Deurknop41touch.touchTime TO DeurBeweging42.startTime ROUTE Deurknop42touch.touchTime TO DeurBeweging42.startTime ROUTE Deurknop43touch.touchTime TO DeurBeweging41.startTime ROUTE Deurknop44touch.touchTime TO DeurBeweging41.startTime ROUTE Deurknop43touch.touchTime TO DeurBeweging42.startTime ROUTE Deurknop44touch.touchTime TO DeurBeweging42.startTime ROUTE Deurknop51touch.touchTime TO DeurBeweging51.startTime ROUTE Deurknop52touch.touchTime TO DeurBeweging51.startTime ROUTE Deurknop51touch.touchTime TO DeurBeweging52.startTime ROUTE Deurknop52touch.touchTime TO DeurBeweging52.startTime ROUTE Deurknop53touch.touchTime TO DeurBeweging51.startTime ROUTE Deurknop54touch.touchTime TO DeurBeweging51.startTime ROUTE Deurknop53touch.touchTime TO DeurBeweging52.startTime ROUTE Deurknop54touch.touchTime TO DeurBeweging52.startTime ROUTE Deurknop61touch.touchTime TO DeurBeweging61.startTime ROUTE Deurknop62touch.touchTime TO DeurBeweging61.startTime ROUTE Deurknop61touch.touchTime TO DeurBeweging62.startTime ROUTE Deurknop62touch.touchTime TO DeurBeweging62.startTime ROUTE Deurknop63touch.touchTime TO DeurBeweging61.startTime ROUTE Deurknop64touch.touchTime TO DeurBeweging61.startTime ROUTE Deurknop63touch.touchTime TO DeurBeweging62.startTime ROUTE Deurknop64touch.touchTime TO DeurBeweging62.startTime } ###---------------------------------------------### PROTO Middenstuk [ field SFVec3f translatie 0 0 0 field SFRotation rotatie 0 0 0 0 ] { Transform { translation IS translatie rotation IS rotatie children [ DEF Rechthoek Transform { children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Tramtext.jpg" } } geometry Box { size 1.1 3.5 0.05 } } ] } DEF Schuin Transform { translation 0.635 0 -0.1 rotation 0 1 0 0.6 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/Tramtext.jpg" } } geometry Box { size 0.33 3.5 0.05 } } ] } Transform { translation 1 -0.05 -0.2 children [ Shape { appearance Appearance { material Material { diffuseColor 0.718 0.793 0.816 } } geometry Box { size 0.75 3.7 0.05 } } ] } Transform { translation 2 0 0 children [ USE Rechthoek ] } Transform { translation 1 0 -0.65 rotation 0 1 0 -1.2 children [ USE Schuin ] } ] } } ###---------------------------------------------### ### Binnenkant van de tram ### ###---------------------------------------------### PROTO Plafond [ field SFVec3f translatie 0 0 0 field SFRotation rotatie 0 0 0 0 field SFVec3f scale 1 1 1 ] { Transform { translation IS translatie rotation IS rotatie scale IS scale children [ Transform { children [ Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } } geometry Box { size 17 0.45 1 } } ] } Transform { translation 0 -0.23 -0.7 children [ Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } } geometry IndexedFaceSet { coord Coordinate { point [ -8.5 0 0.2, 8.5 0 0.2, 8.5 0.35 -0.2, -8.5 0.35 -0.2 -8.5 0.45 0.2, 8.5 0.45 0.2, 8.5 0.45 -0.2, -8.5 0.45 -0.2 ] } coordIndex [ 0 4 7 3 -1 0 1 2 3 -1 0 1 5 4 -1 1 2 6 5 -1 4 5 6 7 -1 2 3 7 6 -1 ] solid FALSE } } ] } ] } } PROTO Licht [ field SFVec3f translatie 0 0 0 ] { Transform{ translation IS translatie children [ Transform { children [ Shape { appearance Appearance { material Material { emissiveColor 1 1 0 } } geometry Box { size 17 0.05 0.22 } } ] } ] } } #Licht {} PROTO Kaartenstempel [ field SFVec3f translatie 0 0 0 ] { Transform{ translation IS translatie children [ Transform { translation 0 -0.38 0 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/pilaar.jpg" } } geometry Cylinder { height 2.85 radius 0.03 } } ] } Transform { translation 0 1.25 -0.65 children [ DEF bovenstukje Shape { appearance Appearance { texture ImageTexture { url "tramtextures/pilaar.jpg" } } geometry Cylinder { height 0.4 radius 0.03 } } ] } Transform { translation 0 1.25 0.65 children [ USE bovenstukje ] } ### liggend bovenstukje ### Transform { translation 0 1.08 0 rotation 1 0 0 1.57 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/pilaar.jpg" } } geometry Cylinder { height 1.3 radius 0.03 } } ] } ### Driehoekje boven ### Transform { translation -0.1 1.25 0 rotation 0 0 1 0.7 children [ DEF Driehoek Shape { appearance Appearance { texture ImageTexture { url "tramtextures/driehoek.jpg" } } geometry Box { size 0.0001 0.4 0.8 } } ] } Transform { translation 0.1 1.25 0 rotation 0 0 1 -0.7 children [ USE Driehoek ] } Transform { translation -0.075 -0.2 0 rotation 0 1 0 1.57 children [ Shape { appearance Appearance{ texture ImageTexture { url "tramtextures/kleurStempel.jpg" } } geometry Box { size 0.27 0.55 0.12 } } ] } Transform { translation -0.137 -0.2 0 rotation 0 1 0 1.57 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/stempel.jpg" } } geometry Box { size 0.27 0.55 0 } } ] } ### Achterkantstempel ### Transform { translation -0.015 -0.22 0 rotation 0 1 0 1.57 children [ Shape { appearance Appearance { material Material { diffuseColor 0.5 0.5 0.5 } } geometry Box { size 0.24 0.53 0.005 } } ] } ] } } PROTO Routemap[ field SFVec3f translatie 0 0 0 field SFRotation rotatie 0 0 0 0 ] { Transform { translation IS translatie rotation IS rotatie children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/routemap.gif" } } geometry Box { size 2.5 0.3 0.01 } } ] } } PROTO Glasplaat[ field SFVec3f translatie 0 0 0 field SFRotation rotatie 0 1 0 1.57 ] { Transform{ translation IS translatie rotation IS rotatie children [ ###-- Pilaar --### Transform { children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/pilaar.jpg" } } geometry Cylinder { height 3.6 radius 0.03 } } ] } ###-- Pilaar liggend--### Transform { translation -0.55 -0.42 0 rotation 0 0 1 1.57 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/pilaar.jpg" } } geometry Cylinder { height 1.1 radius 0.03 } } ] } ###-- Glasplaat --### Transform { translation -0.55 0.1 0 children [ Shape { appearance Appearance{ material Material { diffuseColor 0 0.3 0.5 transparency 0.6 } } geometry Box { size 1 0.95 0.05 } } ] } ] } } ###-- Pilaar boven--### PROTO Bovenpilaar[ field SFVec3f translatie 0 0 0 ] { Transform { translation IS translatie children [ Transform { translation 3.1 -0.4 -1.15 rotation 0 0 1 1.57 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/pilaar.jpg" } } geometry Cylinder { height 2.95 radius 0.03 } } ] } Transform { translation 2.7 -0.18 -1.15 children [ DEF Tussenstukje Shape { appearance Appearance { texture ImageTexture { url "tramtextures/pilaar.jpg" } } geometry Cylinder { height 0.4 radius 0.03 } } ] } Transform { translation 3.8 -0.18 -1.15 children [ USE Tussenstukje ] } ] } } ###Box onder stoel### PROTO Stoelbox[ field SFVec3f translatie 0 0 0 field SFRotation rotatie 0 1 0 1.57 ] { Transform { translation IS translatie rotation IS rotatie children [ Transform { children [ Shape { appearance Appearance { material Material { diffuseColor 0.467 0.416 0.349 } } geometry Box { size 1.1 0.4 0.6 } } ] } Transform { translation 0 0 0.305 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/stoelbox.jpg" } } geometry Box { size 1.1 0.4 0 } } ] } ] } } ###--- Stoel ---### PROTO Stoel[ field SFVec3f translatie 0 0 0 field SFRotation rotatie 0 1 0 1.57 ] { Transform { translation IS translatie children [ Transform { rotation 0 0 1 -0.1 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/stoelText.jpg" } } geometry Box { size 0.5 0.05 0.52 } } ] } Transform { translation 0.395 0.5 0 rotation 0 0 1 -0.25 children [ Shape { appearance Appearance { texture ImageTexture { url "tramtextures/stoelText.jpg" } } geometry Box { size 0.05 0.85 0.52 } } ] } ###-- rode latjes rondom de stoel --### ### Zijkant zitting ### DEF Lat1 Transform { translation 0 0 0.275 rotation 0 0 1 -0.1 children [ Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Box { size 0.5 0.05 0.035 } } ] } ### Zijkant rugleuning ### DEF Lat2 Transform { translation 0.395 0.5 0.275 rotation 0 0 1 -0.25 children [ Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Box { size 0.05 0.85 0.035 } } ] } Transform { translation 0 0 -0.552 children [ USE Lat1 ] } Transform { translation 0 0 -0.552 children [ USE Lat2 ] } ### Onderkant rugleuning ### DEF Lat3 Transform { translation 0.285 0.075 0 rotation 0 0 1 -0.25 children [ Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Box { size 0.05 0.035 0.585 } } ] } ### Bovenkant rugleuning ### Transform { translation 0.22 0.85 0 children [ USE Lat3 ] } ### achterkan rugleuning ### Transform { translation 0.424 0.5 0 rotation 0 0 1 -0.25 children [ Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Box { size 0 0.85 0.52 } } ] } ### Bovenstuk ### DEF boven Transform { translation 0.522 0.987 0.275 rotation 0 0 1 -0.25 children [ Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Box { size 0.05 0.1 0.035 } } ] } Transform { translation 0 0 -0.55 children [ USE boven ] } Transform { translation 0.54 1.055 0 rotation 0 0 1 -0.25 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0 0 } } geometry Box { size 0.05 0.035 0.59 } } ] } ] } } PROTO DubbeleStoelLinks [ field SFVec3f translatie 0 0 0 field SFRotation rotatie 0 0 0 0 ] { Transform { translation IS translatie rotation IS rotatie children [ Stoel {} Stoel {translatie 0 0 -0.6} Transform { translation 0.17 0.13 0.3 rotation 0 0 1 -0.85 children [ Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Box { size 0.05 0.42 0.01 } } ] } ] } } PROTO DubbeleStoelRechts [ field SFVec3f translatie 0 0 0 field SFRotation rotatie 0 0 0 0 ] { Transform { translation IS translatie rotation IS rotatie children [ Stoel {} Stoel {translatie 0 0 -0.6} Transform { translation 0.17 0.13 -0.9 rotation 0 0 1 -0.85 children [ Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Box { size 0.05 0.42 0.01 } } ] } ] } } PROTO HalveTram[ ] { ###------------------------### ### Buitenkant van de tram ### ###------------------------### RamenEnDeuren {} RamenEnDeuren { translatie 0 0 -3.5 rotatie 0 1 0 3.14 } Transform { translation -8.97 -0.3 0 children [ Voorkant {} ] } Transform { translation -8.97 -0.3 -3.5 children [ Voorkant {} ] } Transform { translation -8.97 -0.3 0 children [ Conducteur {} ] } ###------------------------### ### Binnenkant van de tram ### ###------------------------### Plafond { translatie 0 -0.1 -0.42 scale 1 1 0.5 } Plafond { rotatie 0 1 0 3.14 translatie 0 -0.1 -3.1 scale 1 1 0.5 } Licht { translatie 0 0 -1 } Licht { translatie 0 0 -2.5 } Routemap { translatie -5.8 -0.25 -0.8 rotatie 1 0 0 -0.2 } Routemap { translatie 6.3 -0.25 -0.8 rotatie 1 0 0 -0.2 } Routemap { translatie -5.8 -0.25 -2.45 rotatie 1 0 0 0.2 } Routemap { translatie 6.3 -0.25 -2.45 rotatie 1 0 0 0.2 } Collision { children [ Kaartenstempel { translatie -6.8 -1.65 -1.75 } Kaartenstempel { translatie 6.2 -1.65 -1.75 } Glasplaat { translatie -1.6 -1.63 -1.15 } Glasplaat { translatie -1.6 -1.63 -2.35 rotatie 0 1 0 -1.57 } Bovenpilaar { } Bovenpilaar { translatie 0 0 -1.21 } Bovenpilaar { translatie -6.2 0 0 } Bovenpilaar { translatie -6.2 0 -1.21 } Glasplaat { translatie -4.55 -1.8 -1.15 } Glasplaat { translatie -4.55 -1.8 -2.35 rotatie 0 1 0 -1.57 } Glasplaat { translatie -7.65 -1.8 -1.15 } Glasplaat { translatie -7.65 -1.8 -2.35 rotatie 0 1 0 -1.57 } Glasplaat { translatie 1.6 -1.8 -1.15 } Glasplaat { translatie 1.6 -1.8 -2.35 rotatie 0 1 0 -1.57 } Glasplaat { translatie 4.6 -1.8 -1.15 } Glasplaat { translatie 4.6 -1.8 -2.35 rotatie 0 1 0 -1.57 } Stoelbox { translatie -1.95 -3.25 -0.6 } Stoelbox { translatie -1.95 -3.25 -2.91 } Stoelbox { translatie -4.25 -3.25 -0.6 rotatie 0 1 0 4.71 } Stoelbox { translatie -4.25 -3.25 -2.91 rotatie 0 1 0 4.71 } Stoelbox { translatie -7.95 -3.25 -0.6 } Stoelbox { translatie -7.95 -3.25 -2.91 } Stoelbox { translatie 1.95 -3.25 -0.6 rotatie 0 1 0 4.71 } Stoelbox { translatie 1.95 -3.25 -2.91 rotatie 0 1 0 4.71 } Stoelbox { translatie 4.25 -3.25 -0.6 } Stoelbox { translatie 4.25 -3.25 -2.91 } DubbeleStoelRechts { translatie -2.2 -3.01 -0.375 } DubbeleStoelLinks { translatie -3.05 -3.01 -0.97 rotatie 0 1 0 3.14 } DubbeleStoelLinks { translatie -3.95 -3.01 -0.97 rotatie 0 1 0 3.14 } DubbeleStoelRechts { rotatie 0 1 0 3.14 translatie -3.95 -3.01 -3.12 } DubbeleStoelRechts { rotatie 0 1 0 3.14 translatie -3.05 -3.01 -3.12 } DubbeleStoelLinks { translatie -2.2 -3.01 -2.5 } DubbeleStoelRechts { translatie -8.3 -3.01 -0.375 } DubbeleStoelLinks { translatie -9.5 -3.01 -0.97 rotatie 0 1 0 3.14 } DubbeleStoelRechts { rotatie 0 1 0 3.14 translatie -9.5 -3.01 -3.12 } DubbeleStoelLinks { translatie -8.3 -3.01 -2.5 } DubbeleStoelRechts { translatie 3.95 -3.01 -0.375 } DubbeleStoelLinks { translatie 3.1 -3.01 -0.97 rotatie 0 1 0 3.14 } DubbeleStoelLinks { translatie 2.2 -3.01 -0.97 rotatie 0 1 0 3.14 } DubbeleStoelRechts { rotatie 0 1 0 3.14 translatie 2.2 -3.01 -3.12 } DubbeleStoelRechts { rotatie 0 1 0 3.14 translatie 3.1 -3.01 -3.12 } DubbeleStoelLinks { translatie 3.95 -3.01 -2.5 } ] collide FALSE } } PROTO Tram1[ ] { HalveTram {} Transform { translation 18.2 0 -3.5 rotation 0 1 0 3.14 children [ HalveTram {} ] } Deuren{} Onderkant { translatie -0.7 -3.55 0 } Onderkant { translatie -0.7 -3.55 -3.5 } SchuinBoven { translatie -0.7 0.1 -0.05 } SchuinBoven { translatie -0.7 0.1 -3.45 rotatie 0 1 0 3.14 } Middenstuk { translatie 8.1 -1.7 0 } Middenstuk { rotatie 0 1 0 3.14 translatie 10 -1.7 -3.5 } Onderkant { rotatie 0 1 0 3.14 translatie 18.85 -3.55 0 } Onderkant { rotatie 0 1 0 3.14 translatie 18.85 -3.55 -3.5 } SchuinBoven { translatie 18.85 0.1 -0.05 } SchuinBoven { translatie 18.85 0.1 -3.45 rotatie 0 1 0 3.14 } Transform { translation 9 -3.47 -1.73 children [ Grond {} ] } Transform { translation 9 0.175 -1.765 children [ Dak {} ] } Transform { translation -8 0.78 -1.765 scale 1 0.7 1 children [ Bovenleiding {} ] } Transform { translation 7.6 0.78 -1.765 scale 1 0.7 1 children [ Bovenleiding {} ] } Transform { translation 23 0.78 -1.765 scale 1 0.7 1 children [ Bovenleiding {} ] } Wielen {} } PROTO Tram[ ] { Transform { rotation 0 1 0 3.14 children [ Tram1 {} ] } } Tram {}