local vec3 = require "vec3" local transf = require "transf" function data() return { boundingInfo = { bbMax = { 11.946655273438, 1.4136459827423, 3.7780799865723, }, bbMin = { -11.946655273438, -1.4136459827423, -0.42713099718094, }, }, collider = { params = { }, type = "MESH", }, lods = { { animations = { }, children = { { id = "vehicle/waggon/ew_ii_lod_2_doors.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -9.4496, -1.1212, 0, 1, }, type = "GROUP", }, { id = "vehicle/waggon/ew_ii_lod_2_doors2.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -9.4496, 1.1212, 0, 1, }, type = "GROUP", }, { id = "vehicle/waggon/ew_ii_lod_2_doors.grp", transf = transf.rotZYXTransl(transf.degToRad(180,0,0), vec3.new(9.4496, 1.1212, 0)), type = "GROUP", }, { id = "vehicle/waggon/ew_ii_lod_2_doors2.grp", transf = transf.rotZYXTransl(transf.degToRad(180,0,0), vec3.new(9.4496, -1.1212, 0)), type = "GROUP", }, { id = "vehicle/waggon/ew_ii/lod_2_body.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, }, type = "MESH", }, { id = "vehicle/waggon/ew_ii_lod_2_bogie.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -9, 0, 0, 1, }, type = "GROUP", },{ id = "vehicle/waggon/ew_ii_lod_2_bogie.grp", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 9, 0, 0, 1, }, type = "GROUP", }, }, events = { open_all_doors = { }, close_all_doors = { }, open_doors_right = { }, close_doors_right = { }, open_doors_left = { }, close_doors_left = { }, }, matConfigs = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, }, }, static = false, visibleFrom = 400, visibleTo = 1830, }, { animations = { }, children = { { id = "vehicle/waggon/ew_ii_lod_0_doors.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -9.4496, -1.1212, 0, 1, }, type = "GROUP", }, { id = "vehicle/waggon/ew_ii_lod_0_doors2.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -9.4496, 1.1212, 0, 1, }, type = "GROUP", }, { id = "vehicle/waggon/ew_ii_lod_0_doors.grp", transf = transf.rotZYXTransl(transf.degToRad(180,0,0), vec3.new(9.4496, 1.1212, 0)), type = "GROUP", }, { id = "vehicle/waggon/ew_ii_lod_0_doors2.grp", transf = transf.rotZYXTransl(transf.degToRad(180,0,0), vec3.new(9.4496, -1.1212, 0)), type = "GROUP", }, { id = "vehicle/waggon/ew_ii/lod_0_body.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, }, type = "MESH", }, { id = "vehicle/waggon/ew_ii/lod_0_interior.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, }, type = "MESH", },{ id = "vehicle/waggon/ew_ii/lod_0_logo_body.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, }, type = "MESH", }, { id = "vehicle/waggon/ew_ii_lod_0_bogie.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -9, 0, 0, 1, }, type = "GROUP", },{ id = "vehicle/waggon/ew_ii_lod_0_bogie.grp", transf = { -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 9, 0, 0, 1, }, type = "GROUP", }, }, events = { open_all_doors = { [1] = { name = "open_doors", forward = true }, [2] = { name = "open_doors", forward = true }, [3] = { name = "open_doors", forward = true }, [4] = { name = "open_doors", forward = true }, }, close_all_doors = { [1] = { name = "open_doors", forward = false }, [2] = { name = "open_doors", forward = false }, [3] = { name = "open_doors", forward = false }, [4] = { name = "open_doors", forward = false }, }, open_doors_right = { [1] = { name = "open_doors", forward = true }, [4] = { name = "open_doors", forward = true }, }, close_doors_right = { [1] = { name = "open_doors", forward = false }, [4] = { name = "open_doors", forward = false }, }, open_doors_left = { [2] = { name = "open_doors", forward = true }, [3] = { name = "open_doors", forward = true }, }, close_doors_left = { [2] = { name = "open_doors", forward = false }, [3] = { name = "open_doors", forward = false }, }, }, matConfigs = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, }, }, static = false, visibleFrom = 0, visibleTo = 400, }, }, metadata = { description = { name = _("Einheitswagen II"), description = _("This four axle, twin bogie \"Standard-Coach II\" for passenger service was built in big series.") }, railVehicle = { topSpeed = 140, weight = 30, configs = { { axles = { "vehicle/waggon/ew_ii/lod_2_w1.msh" } },{ axles = { "vehicle/waggon/ew_ii/lod_0_w1.msh" } } }, soundSet = "waggon_modern" }, transportVehicle = { capacities = { { type = "PASSENGERS", capacity = 82 } }, carrier = "RAIL", loadSpeed = 2, seats = { --passangers { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-7.8, -1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-7.8, -0.4, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-7.8, 0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-6.7, 1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-6.7, -0.2, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-6.7, -0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-5.8, -1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-5.8, -0.4, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-5.8, 0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-4.7, 1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-4.7, -0.2, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-4.7, -0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-3.8, -1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-3.8, -0.4, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-3.8, 0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-2.7, 1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-2.7, -0.2, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-2.7, -0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.8, -1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.8, -0.4, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-1.8, 0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-0.7, 1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-0.7, -0.2, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-0.7, -0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(6.8, -1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(6.8, -0.4, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(6.8, 0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(7.8, 1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(7.8, -0.2, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(7.8, -0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(4.7, -1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(4.7, -0.4, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(4.7, 0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(5.8, 1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(5.8, -0.2, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(5.8, -0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(2.7, -1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(2.7, -0.4, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(2.7, 0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(3.8, 1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(3.8, -0.2, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(3.8, -0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.7, -1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.7, -0.4, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(0.7, 0.9, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(1.8, 1, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(1.8, -0.2, 1))}, { group =13, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(1.8, -0.9, 1))}, } }, availability = { yearFrom = 3000, yearTo = 3000 }, cost = { price = -1 }, maintenance = { runningCosts = -1, lifespan = 40 } }, } end