local vec3 = require "vec3" local transf = require "transf" function data() return { boundingInfo = { bbMax = { 23.173807144165, 19.027015686035, 13.399807929993, }, bbMin = { -24.323081970215, -19.027015686035, -0.29814994335175, }, }, collider = { params = { }, type = "MESH", }, lods = { { animations = { }, children = { { id = "vehicle/plane/boeing_757/lod_0_body.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_d1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 18.4226, 1.8394, 1.0187+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_d2.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 9.2031, 1.8617, 1.5733+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_d3.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -6.7296, 1.8617, 1.3988+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_d4.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -15.2515, 1.6702, 1.5977+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_d1.msh", transf = { 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 18.4226, -1.8394, 1.0187+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_d2.msh", transf = { 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 9.2031, -1.8617, 1.5733+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_d3.msh", transf = { 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -6.7296, -1.8617, 1.3988+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_d4.msh", transf = { 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -15.2515, -1.6702, 1.5977+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_interior.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_rotor1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.0925, 6.5124, -1.181+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_rotor1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.0925, -6.5124, -1.181+3, 1, }, type = "MESH", }, -- front wheel { id = "vehicle/plane/boeing_757/lod_0_flap_front_left.msh", transf = transf.rotZYXTransl(transf.degToRad(179.382, 0.554, 39.0), vec3.new(18.423, 0.432, -0.83+3)), type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_flap_front_right.msh", transf = transf.rotZYXTransl(transf.degToRad(0.618, -0.554, 39.0), vec3.new(18.423, -0.432, -0.83+3)), type = "MESH", }, { id = "vehicle/plane/boeing_757_lod_0_front_wheel.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 16.714, 0, 0.0751+3, 1, }, type = "GROUP", }, -- back wheels { id = "vehicle/plane/boeing_757/lod_0_flap_back_inner_left.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.8996, 0.1625, -1.1532+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_flap_back_left.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.8852, 3.9129, -0.1449+3, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_757_lod_0_back_wheel.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.8964, 3.6957, 0.0937+3, 1, }, type = "GROUP", }, { id = "vehicle/plane/boeing_757/lod_0_flap_back_inner_left.msh", transf = { 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -1.8996, -0.1625, -1.1532+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_flap_back_left.msh", transf = { 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -1.8852, -3.9129, -0.1449+3, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_757_lod_0_back_wheel.grp", transf = { 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -1.8964, -3.6957, 0.0937+3, 1, }, type = "GROUP", }, -- Aircraft rudders { id = "vehicle/plane/boeing_757/lod_0_aileron_left.msh", transf = transf.rotZYXTransl(transf.degToRad(107.388,-4.177,89.633), vec3.new(-4.9719, 16.3974, 0.9995+3)), type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_elevator_left.msh", transf = transf.rotZYXTransl(transf.degToRad(-70.198, 186.485, -91.454), vec3.new(-21.8, 4.292, 1.75+3)), type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_inboard_flap_left1.msh", transf = transf.rotZYXTransl(transf.degToRad(90,-4.787,0), vec3.new(-2.217, 10.941, 0.413+3)), type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_inboard_flap_left2.msh", transf = transf.rotZYXTransl(transf.degToRad(90,0,0), vec3.new(-1.614, 4.163, -0.222+3)), type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_aileron_left.msh", transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(107.388,-4.177,89.633), vec3.new(-4.9719, 16.3974, 0.9995+3))), type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_elevator_left.msh", transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(-70.198, 186.485, -91.454), vec3.new(-21.8, 4.292, 1.75+3))), type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_inboard_flap_left1.msh", transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(90,-4.787,0), vec3.new(-2.217, 10.941, 0.413+3))), type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_inboard_flap_left2.msh", transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(90,0,0), vec3.new(-1.614, 4.163, -0.222+3))), type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_rudder.msh", transf = transf.rotZYXTransl(transf.degToRad(180, -151.268, -180), vec3.new(-21.462, 0, 6.476+3)), type = "MESH", }, -- lights { id = "vehicle/plane/boeing_757/lod_0_aft_light.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+3, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_757/lod_0_anti_collision_strobo_bottom.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+3, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_757/lod_0_anti_collision_strobo_top.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+3, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_757/lod_0_landing_lights.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+3, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_757/lod_0_navigation_light_left.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+3, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_757/lod_0_navigation_light_right.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+3, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_757/lod_0_logo_body.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+3, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_757/lod_0_logo_rudder.msh", transf = transf.rotZYXTransl(transf.degToRad(180, -151.268, -180), vec3.new(-21.462, 0, 6.476+3)), type = "MESH", }, }, events = { open_doors_left = { [2] = { forward = true, name = "opend1", }, [3] = { forward = true, name = "opend1", }, --[[ [4] = { forward = true, name = "opend1", }, ]]-- [5] = { forward = true, name = "opend1", }, }, open_doors_right = { [6] = { forward = true, name = "opend1", }, [7] = { forward = true, name = "opend1", }, --[[ [8] = { forward = true, name = "opend1", }, ]]-- [9] = { forward = true, name = "opend1", }, }, close_doors_left = { [2] = { forward = false, name = "opend1", }, [3] = { forward = false, name = "opend1", }, --[[ [4] = { forward = false, name = "opend1", }, ]]-- [5] = { forward = false, name = "opend1", }, }, close_doors_right = { [6] = { forward = false, name = "opend1", }, [7] = { forward = false, name = "opend1", }, --[[ [8] = { forward = false, name = "opend1", }, ]]-- [9] = { forward = false, name = "opend1", }, }, open_wheels = { [13] = { forward = true, name = "open" }, [14] = { forward = true, name = "open" }, [15] = { forward = true, name = "open" }, [16] = { forward = true, name = "open" }, [17] = { forward = true, name = "open" }, [18] = { forward = true, name = "open" }, [19] = { forward = true, name = "open" }, [20] = { forward = true, name = "open" }, [21] = { forward = true, name = "open" }, }, close_wheels = { [13] = { forward = true, name = "close" }, [14] = { forward = true, name = "close" }, [15] = { forward = false, name = "open" }, [16] = { forward = false, name = "open" }, [17] = { forward = false, name = "open" }, [18] = { forward = false, name = "open" }, [19] = { forward = false, name = "open" }, [20] = { forward = false, name = "open" }, [21] = { forward = false, name = "open" }, } }, matConfigs = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, }, static = false, visibleFrom = 0, visibleTo = 9210, }, }, metadata = { airVehicle = { weight = 57800.0, maxPayload = 0, maxTakeOffWeight = 115700.0, maxThrust = 360000.0, idleThrust = 18000.0, timeToFullThrust = 3, wingArea = 181.3, topSpeed = 248.611111111, configs = { { axles = { "vehicle/plane/boeing_757/lod_0_w2.msh", "vehicle/plane/boeing_757/lod_0_w3.msh" }, wheels = { "vehicle/plane/boeing_757/lod_0_w1.msh", }, elevator = { ids = { 33, 37 }, maxAngle = 20 }, aileronLeft = { ids = { 32 }, maxAngle = 30 }, aileronRight = { ids = { 36 }, maxAngle = 30 }, flaps = { ids = { 34, 35, 38, 39 }, maxAngle = 20 }, rudder = { ids = { 40 }, maxAngle = 30 } } } }, availability = { yearFrom = 3000, yearTo = 3000 }, cost = { price = -1 }, description = { name = _("Boeing 757"), description = _("The Boeing 757 is the manufacturer's largest single-aisle passenger aircraft and was produced from 1981 to 2004.") }, maintenance = { runningCosts = -1, lifespan = 50 }, transportVehicle = { carrier = "AIR", capacities = { { type = "PASSENGERS", capacity = 220, -- wikipedia: max 239 } }, loadSpeed = 10, seats = { { group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(20.38, 0.6, 0.1)), crew = true}, { group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(20.38, -0.75, 0.1)), crew = true}, --passangers } }, soundConfig = { soundSet = { name = "aircraft_jet_modern" } } }, } end