local vec3 = require "vec3" local transf = require "transf" function data() return { boundingInfo = { bbMax = { 15.126559257507, 14.180633544922, 11.674771308899, }, bbMin = { -14.741494178772, -14.180633544922, -0.097778141498566, }, }, collider = { params = { }, type = "MESH", }, lods = { { animations = { }, children = { -- Body { id = "vehicle/plane/boeing_737/lod_0_body.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_d1.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10.4301, 1.5941, 0+2, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_d2.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -7.6291, 1.4587, 0+2, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_d3.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10.4301, -1.5941, 0+2, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_d4.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -7.6291, -1.4587, 0+2, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_interior.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_rotor1.msh", transf = transf.rotZYXTransl(transf.degToRad(-91.77,-85.327,-89.998), vec3.new(4.1182, 5.0691, -0.5121+2)), type = "MESH", },{ id = "vehicle/plane/boeing_737/lod_0_rotor1.msh", transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(-91.77,-85.327,-89.998), vec3.new(4.1182, 5.0691, -0.5121+2))), type = "MESH", }, -- back wheels { id = "vehicle/plane/boeing_737/lod_0_flap_back_left.msh", transf = transf.rotZYXTransl(transf.degToRad(180,0,-78.5), vec3.new(0.1956, 2.8007, 0.3302+2)), type = "MESH", }, { id = "vehicle/plane/boeing_737_lod_0_back_wheel.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.2539, 2.7987, 0.4701+2, 1, }, type = "GROUP", }, { -- mirrored id = "vehicle/plane/boeing_737/lod_0_flap_back_left.msh", transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(180,0,-78.5), vec3.new(0.1956, 2.8007, 0.3302+2))), type = "MESH", }, { id = "vehicle/plane/boeing_737_lod_0_back_wheel.grp", transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(0,0,0), vec3.new(0.2539, 2.7987, 0.4701+2))), type = "GROUP", }, -- front wheel { id = "vehicle/plane/boeing_737/lod_0_flap_front_left.msh", transf = transf.rotZYXTransl(transf.degToRad(180,8.94,-80), vec3.new(12.6405, 0.4236, -0.3735+2)), type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_flap_front_right.msh", transf = transf.rotZYXTransl(transf.degToRad(0,171.06,80), vec3.new(12.6405, -0.4236, -0.3735+2)), type = "MESH", }, { id = "vehicle/plane/boeing_737_lod_0_front_wheel.grp", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10.9502, 0, -0.4198+2, 1, }, type = "GROUP", }, -- Aircraft rudders { id = "vehicle/plane/boeing_737/lod_0_aileron_left.msh", transf = transf.rotZYXTransl(transf.degToRad(106.232,-5.479,89.697), vec3.new(-2.702, 12.1271, 1.0303+2)), type = "MESH", },{ id = "vehicle/plane/boeing_737/lod_0_aileron_left.msh", transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(106.232,-5.479,89.697), vec3.new(-2.702, 12.1271, 1.0303+2))), type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_elevator_left.msh", transf = transf.rotZYXTransl(transf.degToRad(-69.849,-174.301,-90.101), vec3.new(-13.431, 3.1295, 2.806+2)), type = "MESH", },{ id = "vehicle/plane/boeing_737/lod_0_elevator_left.msh", transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(-69.849,-174.301,-90.101), vec3.new(-13.431, 3.1295, 2.806+2))), type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_inboard_flap_left1.msh", transf = transf.rotZYXTransl(transf.degToRad(107.153,-5.442,104.228), vec3.new(-0.6018, 5.2439, 0.1916+2)), type = "MESH", },{ id = "vehicle/plane/boeing_737/lod_0_inboard_flap_left1.msh", transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(107.153,-5.442,104.228), vec3.new(-0.6018, 5.2439, 0.1916+2))), type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_inboard_flap_left2.msh", transf = transf.rotZYXTransl(transf.degToRad(90,-5.596,44.053), vec3.new(-0.4405, 3.2216, 0.0978+2)), type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_inboard_flap_left2.msh", transf = transf.flipY(transf.rotZYXTransl(transf.degToRad(90,-5.596,44.053), vec3.new(-0.4405, 3.2216, 0.0978+2))), type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_rudder.msh", transf = transf.rotZYXTransl(transf.degToRad(0,-21.1209,0.952), vec3.new(-12.5152, 0, 6.029+2)), type = "MESH", }, -- lights { id = "vehicle/plane/boeing_737/lod_0_aft_light.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_737/lod_0_anti_collision_strobo_bottom.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_737/lod_0_anti_collision_strobo_top.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_737/lod_0_landing_lights.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_737/lod_0_navigation_light_left.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1, }, type = "MESH", },{ id = "vehicle/plane/boeing_737/lod_0_navigation_light_right.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_logo_body.msh", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0+2, 1, }, type = "MESH", }, { id = "vehicle/plane/boeing_737/lod_0_logo_rudder.msh", transf = transf.rotZYXTransl(transf.degToRad(0,-21.1209,0.952), vec3.new(-12.5152, 0, 6.029+2)), type = "MESH", }, }, events = { open_doors_left = { [2] = { forward = true, name = "opend1", }, [3] = { forward = true, name = "opend2", }, }, close_doors_left = { [2] = { forward = false, name = "opend1", }, [3] = { forward = false, name = "opend2", }, }, open_doors_right = { [4] = { forward = true, name = "opend3", }, [5] = { forward = true, name = "opend4", }, }, close_doors_right = { [4] = { forward = false, name = "opend3", }, [5] = { forward = false, name = "opend4", }, }, close_wheels = { [9] = { forward = false, name = "open", }, [10] = { forward = false, name = "open", }, [11] = { forward = false, name = "open", }, [12] = { forward = false, name = "open", }, [13] = { forward = true, name = "close", }, [14] = { forward = true, name = "close", }, [15] = { forward = false, name = "open", }, }, open_wheels = { [9] = { forward = true, name = "open", }, [10] = { forward = true, name = "open", }, [11] = { forward = true, name = "open", }, [12] = { forward = true, name = "open", }, [13] = { forward = false, name = "close", }, [14] = { forward = false, name = "close", }, [15] = { forward = true, 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 = 6680, }, }, metadata = { airVehicle = { weight = 28100.0, maxPayload = 0, maxTakeOffWeight = 50300.0, maxThrust = 128000.0, idleThrust = 6400.0, timeToFullThrust = 3, wingArea = 102, topSpeed = 216.666666667, configs = { { axles = { "vehicle/plane/boeing_737/lod_0_w2.msh", }, wheels = { "vehicle/plane/boeing_737/lod_0_w1.msh", }, elevator = { ids = { 26, 27 }, maxAngle = 30 }, aileronLeft = { ids = { 24 }, maxAngle = 30 }, aileronRight = { ids = { 25 }, maxAngle = 30 }, flaps = { -- TODO, fixit ids = { 28, 29, 30, 31 }, maxAngle = 35 }, rudder = { ids = { 32,40 }, maxAngle = 30 } } } }, availability = { yearFrom = 3000, yearTo = 3000 }, cost = { price = -1 }, description = { name = _("Boeing 737"), description = _("The Boeing 737 is an American short- to medium-range twinjet narrow-body airliner.") }, maintenance = { runningCosts = -1, lifespan = 50 }, transportVehicle = { carrier = "AIR", capacities = { { type = "PASSENGERS", capacity = 85, } }, loadSpeed = 6, seats = { { group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(12.1, 0.52, 0.48)), crew = true}, } }, soundConfig = { soundSet = { name = "aircraft_jet_old" } } }, } end