{
"van_interior_lighting": {
    "information":{
        "authors":"BeamNG",
        "name":"Dashboard With Lighting",
        "value":1000,
    },
    "slotType" : "van_interior",
    "slots": [
        ["type", "default", "description"],
        ["van_steer","van_steer", "Steering Wheel"],
        ["van_ac","van_ac", "Air Conditioning Unit"],
        ["van_radio","van_radio", "Radio"],
        ["van_shifter","van_shifter_A","Shifter"],

    ],
    "camerasInternal":[
        ["type", "x", "y", "z", "fov", "id1:", "id2:", "id3:", "id4:", "id5:", "id6:"],
        {"nodeWeight":2.35},
        {"beamSpring":846, "beamDamp":94},
        {"selfCollision":true},
        {"collision":true},
        //dash cam
        ["dash", 0.538, -0.13, 1.77, 55, "b1rr","b1ll","b3rr","b3ll","b6rr","b6ll", {"beamDeform":2800560,"beamStrength":"FLT_MAX"}],
    ],
    "soundscape": [
        ["name", "src"],
        //indicator7
        {"node:":"int_strw"},
        ["indicatorStart", "event:>Vehicle>Interior>Indicator>HYU_On"],
        ["indicatorStop", "event:>Vehicle>Interior>Indicator>HYU_Off"],
        {"node:":"dshl"},
        ["indLoop1", "event:>Vehicle>Interior>Indicator>LAND_Click"],
        ["indLoop2", "event:>Vehicle>Interior>Indicator>LAND_Clack"],
        //lights3
        ["LightOn", "event:>Vehicle>Interior>Light>TOY_On"],
        ["LightOff", "event:>Vehicle>Interior>Light>TOY_Off"],
        //handbrake2
        {"node:":"b5ll"},
        ["handbrakeDisengaged","event:>Vehicle>Interior>Handbrake_Pedal>Pedal_03_Unlock"],
        ["handbrakeEngaging","event:>Vehicle>Interior>Handbrake_Pedal>Pedal_03_Lock"],
        //affects horn location because horn soundscape is loaded after
        {"node:":"b6l"},
    ],
    "props": [
        ["func",         "mesh",            "idRef:","idX:","idY:", "baseRotation",           "rotation",                  "translation",           "min", "max", "offset", "multiplier"],

        //speedometer
        ["wheelspeed",   "van_needle_speedo", "dshl","dsh","int_strw",       {"x":160 "y":180, "z":0}, {"x":0, "y":0, "z":-5.2},    {"x":0, "y":0, "z":0},   0, 44.5, -22, 1],
        //tachometer
        ["rpm",          "van_needle_tacho",  "dshl","dsh","int_strw",       {"x":160 "y":180, "z":0}, {"x":0, "y":0, "z":-0.0225}, {"x":0, "y":0, "z":0},   0, 6000, -5000, 1],
        //fuel gauge
        ["fuel",         "van_needle_fuel",   "dshl","dsh","int_strw",       {"x":160 "y":180, "z":0}, {"x":0, "y":0, "z":-90},     {"x":0, "y":0, "z":0},   0, 1, -1, 1],
        //oil temp
        ["oil",          "van_needle_oil" ,   "dshl","dsh","int_strw",       {"x":160 "y":180, "z":0}, {"x":0, "y":0, "z":-1.1},    {"x":0, "y":0, "z":0},   0, 80, -40, 1],
        //water temp
        ["watertemp",    "van_needle_water",  "dshl","dsh","int_strw",       {"x":160 "y":180, "z":0}, {"x":0, "y":0, "z":1.5},     {"x":0, "y":0, "z":0},   60, 120, 120, 1],
        //volts
        ["volts",        "van_needle_volts",  "dshl","dsh","int_strw",       {"x":160 "y":180, "z":0}, {"x":0, "y":0, "z":-90},     {"x":0, "y":0, "z":0},   0, 1, 0, 1],

        //pedals
        ["brake",        "van_brakepedal",    "b1l","b1r","b5l",    {"x":-17, "y":0, "z":180},   {"x":-25, "y":0, "z":0},     {"x":0.0, "y":0, "z":0}, 0, 1, 0, 1],
        ["throttle",     "van_gaspedal",      "b1l","b1r","b5l",     {"x":-17 "y":0, "z":180},   {"x":-25, "y":0, "z":0},     {"x":0.0, "y":0, "z":0}, 0, 1, 0, 1],
        ["parkingbrake", "van_parkingbrake",  "b1l","b1r","b5l",     {"x":-17, "y":0, "z":180},   {"x":-25, "y":0, "z":0},     {"x":0.0, "y":0, "z":0}, 0, 1, 0, 1],
        //turn signal stalk
        ["turnsignal",   "van_signalstalk",   "dsh","dshl","dsh2",     {"x":-125 "y":180, "z":180}, {"x":0, "y":0, "z":-10},     {"x":0, "y":0, "z":0},   -1, 1, 0, 1],
    ],
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         //interior
         ["van_dash", ["van_dash"]],
         ["van_gauges", ["van_dash"]],
         ["van_decals_gauges", ["van_dash"]],
         ["van_sunvisors", ["van_body"]],
    ],
    "glowMap":{
        "van_interior":{"simpleFunction":{"lowhighbeam":0.49}, "off":"van_interior", "on":"van_interior_on"},
    },
    "triggers":[
        ["id", "label", "idRef:", "idX:", "idY:", "type", "size", "baseRotation", "rotation", "translation", "baseTranslation"],
        ["hood_int", "Hood Release", "dshl","dsh","b1ll", "box", {"x":0.04, "y":0.04, "z":0.04}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0},{"x":-0.27, "y":0.13, "z":-0.07}],
    ],
    "controller": [
        ["fileName"],
        ["gauges/analogOdometer", {"name":"analogOdometer" }],
    ],
    "analogOdometer": {
        "configuration": {
            "materialName": "@generic_gauges_odo",
            "htmlPath": "local://local/vehicles/common/analogOdo.html",
            "displayWidth":512,
            "displayHeight":32,
            "odometerDigits":7,
            "odometerHasDecimalSeparator":true,
            "tripHasDecimalSeparator":true,
            "unit":"imperial",
            "floatStyle":{"color":"black"},
            "bodyStyle":{
                "background": "url('/vehicles/common/odometer_analog_b.cef_color.png')",
                "font-family": "OpenSans",
                "font-size": "28px",
                "color": "white",
                "letter-spacing": "15.5px",
                "margin": "-4.5px 10.5px",
                "transform": "scaleX(1.26)",
                "transform-origin": "left",
            },
            "tripDivStyle":{
                "margin-left": "-3px",
                "position": "fixed",
                "letter-spacing": "32px"
            }
        },
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"collision":true},
         {"selfCollision":true},

         //dash nodes
         {"group":"van_dash"},
         {"nodeWeight":0.752},
         ["dshr",-0.537, -0.78, 1.35],
         ["dsh", 0.0, -0.78, 1.35],
         ["dshl", 0.537, -0.78, 1.35],
         ["dsh2", 0.0, -0.56, 1.0],
         ["int_strw", 0.537, -0.694, 1.396],
         {"group":""},
    ],
    "torsionbars":[
       ["id1:", "id2:", "id3:", "id4:"],
        //rigify the column
        {"spring":20000, "damp":1, "deform":18000, "strength":28000},
        ["int_strw", "dshl", "dsh", "b5l"],
    ],
    "beams": [
          ["id1:", "id2:"],

          //dash flexbody node
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1.0},
          {"beamSpring":869146.6,"beamDamp":142.73},
          {"beamDeform":12400,"beamStrength":"FLT_MAX"},
          {"deformLimitExpansion":""},
          ["dshr","b5r"],
          ["dshl","b5l"],
          ["dshr","b6r"],
          ["dshl","b6l"],
          ["dshr","b1r"],
          ["dshl","b1l"],
          ["dshr","b5rr"],
          ["dshl","b5ll"],
          ["dshr","b6rr"],
          ["dshl","b6ll"],
          ["dshl","dshr"],
          ["dsh","b5r"],
          ["dsh","b5l"],
          ["dsh","b6r"],
          ["dsh","b6l"],
          ["dsh","b1r"],
          ["dsh","b1l"],
          ["dshl","dsh"],
          ["dshr","dsh"],
          ["dsh2", "dsh"],
          ["dsh2", "dshr"],
          ["dsh2", "dshl"],
          ["dsh2", "b5l"],
          ["dsh2", "b5r"],
          ["dsh2", "b1l"],
          ["dsh2", "b1r"],
          ["dsh2", "b2l"],
          ["dsh2", "b2r"],
          ["dsh2", "b5rr"],
          ["dsh2", "b5ll"],
          ["dshr", "b1rr"],
          ["dshl", "b1ll"],
          ["dsh","int_strw"],
          ["dshl","int_strw"],
          //--BLEED DEFORM LIMIT TO OTHER PARTS--
          {"deformLimitExpansion":1.2},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //sides
            {"dragCoef":0},
            {"group":"van_dash"},
                        ["b6ll", "dshl", "b6l"],
            ["dshl", "int_strw", "dsh"],
            ["dsh", "b6l", "dshl"],
            ["b6l", "dsh", "b6r"],
            ["b6r", "dsh", "dshr"],
            ["dshr", "b6rr", "b6r"],
            ["dshl", "b6ll", "b5ll"],
            ["dshr", "b5rr", "b6rr"],
            ["dshr", "b5r", "b5rr"],
            ["dshl", "b5ll", "b5l"],
            ["dsh2", "b2l", "b2r"],
            ["dsh2", "b5l", "b2l"],
            ["dsh2", "b2r", "b5r"],
            ["b5r", "dshr", "dsh2"],
            ["dsh2", "dshl", "b5l"],
            ["dshr", "dsh", "dsh2"],
            ["dsh2", "dsh", "dshl"],


    ],
},
}
