local vec3 = require "vec3" local transf = require "transf" function data() return { boundingInfo = { }, collider = { params = { }, type = "MESH", }, lods = { { animations = { }, children = { { id = "vehicle/waggon/d1_spanischb/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/d1_spanischb/lod_2_d1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -2.3618, -0.2901, 0, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_2_d2.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.3618, 0.2901, 0, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_2_w1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.5381, 0, 0.4328, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_2_w1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.536, 0, 0.4328, 1, }, type = "MESH", }, }, events = { open_all_doors = { }, close_all_doors = { }, open_doors_left = { }, close_doors_left = { }, open_doors_right = { }, close_doors_right = { }, }, matConfigs = { { 0, 0, 0, 0, 0, 0, 0, }, }, static = false, visibleFrom = 400, visibleTo = 1000, },{ animations = { }, children = { { id = "vehicle/waggon/d1_spanischb/lod_1_body.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_1_d1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -2.3618, -0.2901, 0, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_1_d2.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.3618, 0.2901, 0, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_1_w1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.5381, 0, 0.4328, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_1_w1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.536, 0, 0.4328, 1, }, type = "MESH", }, }, events = { open_all_doors = { [2] = { name = "opend1", forward = true }, [3] = { name = "opend2", forward = true }, }, close_all_doors = { [2] = { name = "opend1", forward = false }, [3] = { name = "opend2", forward = false }, }, open_doors_left = { [2] = { name = "opend1", forward = true }, [3] = { name = "opend2", forward = true }, }, close_doors_left = { [2] = { name = "opend1", forward = false }, [3] = { name = "opend2", forward = false }, }, open_doors_right = { [2] = { name = "opend1", forward = true }, [3] = { name = "opend2", forward = true }, }, close_doors_right = { [2] = { name = "opend1", forward = false }, [3] = { name = "opend2", forward = false }, }, }, matConfigs = { { 0, 0, 0, 0, 0, 0, 0, }, }, static = false, visibleFrom = 50, visibleTo = 400, }, { animations = { }, children = { { id = "vehicle/waggon/d1_spanischb/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/d1_spanischb/lod_0_d1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -2.3618, -0.2901, 0, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_0_d2.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2.3618, 0.2901, 0, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_0_logos.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_0_w1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.5381, 0, 0.4328, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_0_w1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.536, 0, 0.4328, 1, }, type = "MESH", }, { id = "vehicle/waggon/d1_spanischb/lod_0_interior.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, }, type = "MESH", }, }, events = { open_all_doors = { [2] = { name = "opend1", forward = true }, [3] = { name = "opend2", forward = true }, }, close_all_doors = { [2] = { name = "opend1", forward = false }, [3] = { name = "opend2", forward = false }, }, open_doors_left = { [2] = { name = "opend1", forward = true }, [3] = { name = "opend2", forward = true }, }, close_doors_left = { [2] = { name = "opend1", forward = false }, [3] = { name = "opend2", forward = false }, }, open_doors_right = { [2] = { name = "opend1", forward = true }, [3] = { name = "opend2", forward = true }, }, close_doors_right = { [2] = { name = "opend1", forward = false }, [3] = { name = "opend2", forward = false }, }, }, matConfigs = { { 0, 0, 0, 0, 0, 0, 0, }, }, static = false, visibleFrom = 0, visibleTo = 50, }, }, metadata = { description = { name = _("D 1/3 car"), description = _("This legendary railway was known as the Spanisch-Brötli-Bahn, named after a delicacy of Baden, Switzerland.") }, railVehicle = { topSpeed = 40, weight = 5, configs = { { axles = { "vehicle/waggon/d1_spanischb/lod_2_w1.msh" } },{ axles = { "vehicle/waggon/d1_spanischb/lod_1_w1.msh" } },{ axles = { "vehicle/waggon/d1_spanischb/lod_0_w1.msh" } } }, soundSet = "waggon_old" }, transportVehicle = { capacities = { { type = "PASSENGERS", capacity = 22, } }, carrier = "RAIL", loadSpeed = 2, seats = { { group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.1, 0.6, 1.1)) }, { group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-2.1, -0.8, 1.1)) }, { group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-1.0, 0.8, 1.1)) }, { group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(-1.0, -0.6, 1.1)) }, { group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.55, 0.6, 1.1)) }, { group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-0.55, -0.8, 1.1)) }, { group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(0.55, 0.8, 1.1)) }, { group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(0.55, -0.6, 1.1)) }, { group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(2.1, 0.8, 1.1)) }, { group = 1, transf = transf.rotZYXTransl(transf.degToRad(180.0, 0.0, 0.0), vec3.new(2.1, -0.6, 1.1)) }, { group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.0, 0.6, 1.1)) }, { group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(1.0, -0.8, 1.1)) }, } }, availability = { yearFrom = 3000, yearTo = 3000 }, cost = { price = -1 }, maintenance = { runningCosts = -1, lifespan = 25 } }, } end