{
"revuelto_mirror_R": {
    "information":{
        "authors":"BeamNG",
        "name":"Right Mirror",
        "value":680,
    },
    "slotType" : "revuelto_mirror_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["revuelto_mirror_R", ["revuelto_mirror_R"]],
         {"deformGroup":"mirrorsignal_R_break", "deformMaterialBase":"revuelto_lights", "deformMaterialDamaged":"revuelto_lights"},
         ["revuelto_mirrorsignal_R", ["revuelto_mirror_R"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound2", "deformVolume":0.2}],
         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--RIGHT MIRROR--
         {"selfCollision":true},
         {"collision":true},
         {"nodeWeight":0.2},
         {"frictionCoef":1},
         {"nodeMaterial":"|NM_PLASTIC"},
         {"group":"revuelto_mirror_R"},
         ["mi1r", -0.94290, -0.76220, 0.93390],
         ["mi2r", -1.10870, -0.67050, 0.90150],
         ["mi3r", -0.95560, -0.75660, 0.82300],
         ["mi4r", -1.09350, -0.67780, 0.83800],
         ["mi5r", -0.99420, -0.94780, 0.87230],
         ["mi6r", -0.88300, -0.88965, 0.77000],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //--MIRRORS--
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":401000,"beamDamp":10},
          {"beamDeform":2000,"beamStrength":72535},
          //mirror
          {"deformLimitExpansion":1.2},
          {"deformGroup":"mirrorsignal_R_break", "deformationTriggerRatio":0.01},
          ["mi1r","mi2r"],
          ["mi1r","mi3r"],
          ["mi1r","mi4r"],
          ["mi1r","mi5r"],
          ["mi1r","mi6r"],
          ["mi2r","mi3r"],
          ["mi2r","mi4r"],
          ["mi2r","mi5r"],
          ["mi2r","mi6r"],
          ["mi3r","mi4r"],
          ["mi3r","mi5r"],
          ["mi3r","mi6r"],
          ["mi4r","mi5r"],
          ["mi4r","mi6r"],
          ["mi5r","mi6r"],

          //attach
          {"deformLimitExpansion":""},
          {"beamSpring":301000,"beamDamp":10},
          {"beamDeform":6100,"beamStrength":8800},
          {"breakGroup":"mirror_R"},
          ["mi6r", "d7r"],
          ["mi6r", "d8r"],
          ["mi6r", "d14r", {"optional":true}],
          ["mi6r", "d4r"],
          ["mi6r", "d5r"],
          ["mi6r", "d15r", {"optional":true}],
          ["mi5r", "d7r", {"beamSpring":1000,"beamDamp":10}],
          ["mi3r", "d7r", {"beamSpring":1000,"beamDamp":10}],
          {"beamDeform":3100,"beamStrength":5800},
          {"breakGroup":"mirror_R2"},
          ["mi4r", "d8r"],
          ["mi4r", "d7r"],
          ["mi1r", "d7r"],
          ["mi1r", "d8r"],
          ["mi2r", "d8r"],
          ["mi2r", "d7r"],
          ["mi2r", "d5r"],
          ["mi2r", "d4r"],

            ["mi4r", "d4r"],
            ["mi5r", "d4r"],
            ["mi1r", "d10r"],
            ["mi4r", "d5r"],

          {"breakGroup":""},
          {"deformGroup":""},

          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.2},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //right mirror
            {"groundModel":"plastic"},
            {"dragCoef":25},
            {"group":"revuelto_mirror_R"},
            ["mi2r","mi1r","mi3r"],
            ["mi2r","mi3r","mi4r"],

            ["mi1r","mi2r","mi5r"],
            ["mi2r","mi4r","mi5r"],
            ["mi4r","mi3r","mi5r"],
            ["mi3r","mi1r","mi5r"],
            {"group":""},
    ],
},
"revuelto_mirror_L": {
    "information":{
        "authors":"BeamNG",
        "name":"Left Mirror",
        "value":680,
    },
    "slotType" : "revuelto_mirror_L",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["revuelto_mirror_L", ["revuelto_mirror_L"]],
         {"deformGroup":"mirrorsignal_L_break", "deformMaterialBase":"revuelto_lights", "deformMaterialDamaged":"revuelto_lights"},
         ["revuelto_mirrorsignal_L", ["revuelto_mirror_L"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound2", "deformVolume":0.2}],
         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--LEFT MIRROR--
         {"selfCollision":true},
         {"collision":true},
         {"nodeWeight":0.2},
         {"frictionCoef":1},
         {"nodeMaterial":"|NM_PLASTIC"},
         {"group":"revuelto_mirror_L"},
         ["mi1l", 0.94290, -0.76220, 0.93390],
         ["mi2l", 1.10870, -0.67050, 0.90150],
         ["mi3l", 0.95560, -0.75660, 0.82300],
         ["mi4l", 1.09350, -0.67780, 0.83800],
         ["mi5l", 0.99420, -0.94780, 0.87230],
         ["mi6l", 0.88300, -0.88965, 0.77000],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //--MIRRORS--
          {"beamType":"|NORMAL", "beamPrecompression":1, "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":401000,"beamDamp":10},
          {"beamDeform":2000,"beamStrength":72535},
          //mirror
          {"deformLimitExpansion":1.2},
          {"deformGroup":"mirrorsignal_L_break", "deformationTriggerRatio":0.01},
          ["mi1l","mi2l"],
          ["mi1l","mi3l"],
          ["mi1l","mi4l"],
          ["mi1l","mi5l"],
          ["mi1l","mi6l"],
          ["mi2l","mi3l"],
          ["mi2l","mi4l"],
          ["mi2l","mi5l"],
          ["mi2l","mi6l"],
          ["mi3l","mi4l"],
          ["mi3l","mi5l"],
          ["mi3l","mi6l"],
          ["mi4l","mi5l"],
          ["mi4l","mi6l"],
          ["mi5l","mi6l"],

          {"deformLimitExpansion":""},
          {"beamSpring":301000,"beamDamp":10},
          {"beamDeform":6100,"beamStrength":8800},
          {"breakGroup":"mirror_L"},
          ["mi6l", "d7l"],
          ["mi6l", "d8l"],
          ["mi6l", "d14l", {"optional":true}],
          ["mi6l", "d4l"],
          ["mi6l", "d5l"],
          ["mi6l", "d15l", {"optional":true}],
          ["mi5l", "d7l", {"beamSpring":1000,"beamDamp":10}],
          ["mi3l", "d7l", {"beamSpring":1000,"beamDamp":10}],
          {"beamDeform":3100,"beamStrength":5800},
          {"breakGroup":"mirror_L2"},
          ["mi4l", "d8l"],
          ["mi4l", "d7l"],
          ["mi1l", "d7l"],
          ["mi1l", "d8l"],
          ["mi2l", "d8l"],
          ["mi2l", "d7l"],
          ["mi2l", "d5l"],
          ["mi2l", "d4l"],

            ["mi4l", "d4l"],
            ["mi5l", "d4l"],
            ["mi1l", "d10l"],
            ["mi4l", "d5l"],
          {"breakGroup":""},
          {"deformGroup":""},

          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.2},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //left mirror
            {"groundModel":"plastic"},
            {"group":"revuelto_mirror_L"},
            {"dragCoef":25},
            ["mi1l","mi2l","mi3l"],
            ["mi3l","mi2l","mi4l"],

            ["mi2l","mi1l","mi5l"],
            ["mi4l","mi2l","mi5l"],
            ["mi3l","mi4l","mi5l"],
            ["mi1l","mi3l","mi5l"],
            {"group":""},
    ],
},
}