;author=Smace
;description=simple wheel set for under coach/loco modles
;copyright=opensource
;change the last number in each translate to place the wheel set in the correct position

CreateMeshBuilder,
;Wheel tread
Cylinder, 16,.4,.4,.075,
SetColor, 60,60,60,
Rotate, 0,0,1,90,
Translate, .75,.4,1.9901,

CreateMeshBuilder,
;Wheel tread
Cylinder, 16,.4,.4,.075,
SetColor, 60,60,60,
Rotate, 0,0,1,90,
Translate, -.75,.4,1.9901,

CreateMeshBuilder,
;Wheel flange
Cylinder, 16,.5,.4,.075,
SetColor, 65,65,70,
Rotate, 0,0,1,90,
Translate, .68,.4,1.9901,

CreateMeshBuilder,
;Wheel flange
Cylinder, 16,.4,.5,.075,
SetColor, 65,65,70,
Rotate, 0,0,1,90,
Translate, -.68,.4,1.9901,

CreateMeshBuilder,
;axle
Cylinder, 16,.1,.1,1.4,
SetColor, 45,30,30,
Rotate, 0,0,1,90,
Translate, 0,.4,1.9901,



;Underframe Left
createmeshbuilder
Addvertex, -0.8, -0.05, 24.75
Addvertex, -1.0, 1.22, 24.75
Addvertex, -1.0, 1.22, 0.25
Addvertex, -0.8, -0.05, 0.25
Addface2, 0,1,2,3
Generatenormals
loadtexture, mk1chs.bmp
Settexturecoordinates, 0,0,1
Settexturecoordinates, 1,0,0
Settexturecoordinates, 2,1,0
Settexturecoordinates, 3,1,1
setdecaltransparentcolor, 0,0,0

createmeshbuilder
Addvertex, 0.8, -0.05, 24.75
Addvertex, 1.0, 1.22, 24.75
Addvertex, 1.0, 1.22, 0.25
Addvertex, 0.8, -0.05, 0.25
Addface2, 3,2,1,0
Generatenormals
loadtexture, mk1chs.bmp
Settexturecoordinates, 0,0,1
Settexturecoordinates, 1,0,0
Settexturecoordinates, 2,1,0
Settexturecoordinates, 3,1,1
setdecaltransparentcolor, 0,0,0

;Side Left
createmeshbuilder
Addvertex, -1.2, 3.27, 24.75
Addvertex, -1.2, 3.27, 0.25
Addvertex, -1.25, 2, 0.25
Addvertex, -1.2, 1.11, 0.25
Addvertex, -1.2, 1.11, 24.75
Addvertex, -1.25, 2, 24.75
Addface, 0,1,2,5
Addface, 5,2,3,4
Generatenormals
loadtexture, mk1s.bmp
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 1, 0
Settexturecoordinates, 2, 1, 0.55
Settexturecoordinates, 3, 1, 1
Settexturecoordinates, 4, 0, 1
Settexturecoordinates, 5, 0, 0.55

createmeshbuilder
Addvertex, 1.2, 3.27, 24.75
Addvertex, 1.2, 3.27, 0.25
Addvertex, 1.25, 2, 0.25
Addvertex, 1.2, 1.11, 0.25
Addvertex, 1.2, 1.11, 24.75
Addvertex, 1.25, 2, 24.75
Addface, 5,2,1,0
Addface, 4,3,2,5
Generatenormals
loadtexture, mk1s.bmp
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 1, 0
Settexturecoordinates, 2, 1, 0.55
Settexturecoordinates, 3, 1, 1
Settexturecoordinates, 4, 0, 1
Settexturecoordinates, 5, 0, 0.55

;Roof
createmeshbuilder
Addvertex, -0.2, 3.9, 24.75
Addvertex, -0.2, 3.9, 0.25
Addvertex, -0.6, 3.8, 0.25
Addvertex, -0.6, 3.8, 24.75
Addvertex, -1.06, 3.5, 24.75
Addvertex, -1.06, 3.5, 0.25
Addvertex, -1.2, 3.27, 24.75
Addvertex, -1.2, 3.27, 0.25
Addface, 0,1,2,3
Addface, 3,2,5,4
Addface, 4,5,7,6
Generatenormals
loadtexture, mk1roof.bmp
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 1, 0
Settexturecoordinates, 2, 1, 2
Settexturecoordinates, 3, 0, 2
Settexturecoordinates, 4, 0, 5
Settexturecoordinates, 5, 1, 5
Settexturecoordinates, 6, 0, 5
Settexturecoordinates, 7, 1, 5

createmeshbuilder
Addvertex, 0.2, 3.9, 24.75
Addvertex, 0.2, 3.9, 0.25
Addvertex, 0.6, 3.8, 0.25
Addvertex, 0.6, 3.8, 24.75
Addvertex, 1.06, 3.5, 24.75
Addvertex, 1.06, 3.5, 0.25
Addvertex, 1.2, 3.27, 24.75
Addvertex, 1.2, 3.27, 0.25
Addface, 3,2,1,0
Addface, 4,5,2,3
Addface, 6,7,5,4
Generatenormals
loadtexture, mk1roof.bmp
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 1, 0
Settexturecoordinates, 2, 1, 2
Settexturecoordinates, 3, 0, 2
Settexturecoordinates, 4, 0, 5
Settexturecoordinates, 5, 1, 5
Settexturecoordinates, 6, 0, 5
Settexturecoordinates, 7, 1, 5

;Front
createmeshbuilder
Addvertex, -1.30, 3.95, 0.25
Addvertex,  1.30, 3.95, 0.25
Addvertex,  1.30, 0.9, 0.25
Addvertex, -1.30, 0.9, 0.25
Addface, 0,1,2,3
Generatenormals
loadtexture, mk1b.bmp
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 1, 0
Settexturecoordinates, 2, 1, 1
Settexturecoordinates, 3, 0, 1
setdecaltransparentcolor, 0,0,0




CreateMeshBuilder,
;Wheel tread
Cylinder, 16,.4,.4,.075,
SetColor, 60,60,60,
Rotate, 0,0,1,90,
Translate, .75,.4,5.0001,

CreateMeshBuilder,
;Wheel tread
Cylinder, 16,.4,.4,.075,
SetColor, 60,60,60,
Rotate, 0,0,1,90,
Translate, -.75,.4,5.0001,

CreateMeshBuilder,
;Wheel flange
Cylinder, 16,.5,.4,.075,
SetColor, 65,65,70,
Rotate, 0,0,1,90,
Translate, .68,.4,5.0001,

CreateMeshBuilder,
;Wheel flange
Cylinder, 16,.4,.5,.075,
SetColor, 65,65,70,
Rotate, 0,0,1,90,
Translate, -.68,.4,5.0001,

CreateMeshBuilder,
;axle
Cylinder, 16,.1,.1,1.4,
SetColor, 45,30,30,
Rotate, 0,0,1,90,
Translate, 0,.4,5.0001,






CreateMeshBuilder,
;Wheel tread
Cylinder, 16,.4,.4,.075,
SetColor, 60,60,60,
Rotate, 0,0,1,90,
Translate, .75,.4,19.9501,

CreateMeshBuilder,
;Wheel tread
Cylinder, 16,.4,.4,.075,
SetColor, 60,60,60,
Rotate, 0,0,1,90,
Translate, -.75,.4,19.9501,

CreateMeshBuilder,
;Wheel flange
Cylinder, 16,.5,.4,.075,
SetColor, 65,65,70,
Rotate, 0,0,1,90,
Translate, .68,.4,19.9501,

CreateMeshBuilder,
;Wheel flange
Cylinder, 16,.4,.5,.075,
SetColor, 65,65,70,
Rotate, 0,0,1,90,
Translate, -.68,.4,19.9501,

CreateMeshBuilder,
;axle
Cylinder, 16,.1,.1,1.4,
SetColor, 45,30,30,
Rotate, 0,0,1,90,
Translate, 0,.4,19.9501,







CreateMeshBuilder,
;Wheel tread
Cylinder, 16,.4,.4,.075,
SetColor, 60,60,60,
Rotate, 0,0,1,90,
Translate, .75,.4,22.7501,

CreateMeshBuilder,
;Wheel tread
Cylinder, 16,.4,.4,.075,
SetColor, 60,60,60,
Rotate, 0,0,1,90,
Translate, -.75,.4,22.7501,

CreateMeshBuilder,
;Wheel flange
Cylinder, 16,.5,.4,.075,
SetColor, 65,65,70,
Rotate, 0,0,1,90,
Translate, .68,.4,22.7501,

CreateMeshBuilder,
;Wheel flange
Cylinder, 16,.4,.5,.075,
SetColor, 65,65,70,
Rotate, 0,0,1,90,
Translate, -.68,.4,22.7501,

CreateMeshBuilder,
;axle
Cylinder, 16,.1,.1,1.4,
SetColor, 45,30,30,
Rotate, 0,0,1,90,
Translate, 0,.4,22.7501,