{
"polo17_mirror_R_bomz": {
    "information":{
        "authors":"BeamNG",
        "name":"Right Mirror [Standard]",
        "value":210,
    },
    "slotType" : "polo17_mirror_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["polo17_mirror_R_bomz", ["polo17_mirror_R"]],
         {"deformGroup":"mirrorsignal_R_break", "deformMaterialBase":"polo17light", "deformMaterialDamaged":"polo17light"},
         ["polo17_mirrorsignal_R", ["polo17_mirror_R"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound2", "deformVolume":0.2}],
         {"deformGroup":""},
    ],
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":8,
             "lightColor":{"r":254, "g":150, "b":0, "a":255},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleBrakeLightFlare",
        },
        ["signal_R" ,         "SPOTLIGHT"        , "mi4r", "mi3r", "mi2r", {"x":0, "y":0, "z":160} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.3, "y":0.3, "z":-0.04},"flareScale":0.02,"lightBrightness":0.06,"deformGroup":"mirrorsignal_R_break"}],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--MIRROR--
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":1},
         {"nodeMaterial":"|NM_PLASTIC"},
         {"group":"polo17_mirror_R"},
         {"nodeWeight":0.25},
         ["mi1r", -0.81000, -0.63270, 1.03264],
         ["mi2r", -0.97000, -0.59270, 0.99264],
         ["mi3r", -0.79000, -0.64270, 0.90264],
         ["mi4r", -0.97000, -0.59270, 0.90264],
         ["mi5r", -0.89000, -0.70270, 0.94264],
         {"collision":false},
         {"selfCollision":false},
         {"group":""},
         {"nodeWeight":0.35},
         ["mi6r", -0.78000, -0.67770, 0.90264],
         ["mi7r", -0.77500, -0.66770, 0.95264],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //--MIRRORS--
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":501000,"beamDamp":20},
          {"beamDeform":2100,"beamStrength":62500},
          //r
          {"deformLimitExpansion":1.1},
          {"deformGroup":"mirrorsignal_R_break","deformationTriggerRatio":0.05},
          ["mi1r","mi2r"],
          ["mi1r","mi3r"],
          ["mi1r","mi4r"],
          ["mi1r","mi5r"],
          ["mi2r","mi3r"],
          ["mi2r","mi4r"],
          ["mi2r","mi5r"],
          ["mi3r","mi4r"],
          ["mi3r","mi5r"],
          ["mi4r","mi5r"],

          //attach
          {"deformLimitExpansion":""},
          {"beamDeform":3100,"beamStrength":5800},
          {"beamSpring":401000,"beamDamp":20},
          {"breakGroup":"mirror_R"},
          ["mi1r","mi7r"],
          ["mi2r","mi7r"],
          ["mi3r","mi7r"],
          ["mi4r","mi7r"],
          ["mi5r","mi7r"],

          ["mi1r","mi6r"],
          ["mi2r","mi6r"],
          ["mi3r","mi6r"],
          ["mi4r","mi6r"],
          ["mi5r","mi6r"],

          {"beamSpring":54600,"beamDamp":90},
          {"breakGroupType":1},
          ["mi2r","d8r"],
          ["mi4r","d8r"],
          ["mi4r","d4r"],
          ["mi4r","d5r"],
          {"breakGroupType":0},
          {"breakGroup":""},
          {"beamDeform":24000,"beamStrength":"FLT_MAX"},
          {"beamSpring":701000,"beamDamp":20},
          ["mi6r","mi7r"],
          ["mi6r","d10r"],
          ["mi7r","d10r"],
          ["mi6r","d4r"],
          ["mi7r","d4r"],
          ["mi6r","d7r"],
          ["mi7r","d7r"],

          ["mi6r","d8r"],
          ["mi7r","d8r"],
          ["mi6r","d5r"],
          ["mi7r","d5r"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //right mirror
            {"groundModel":"plastic"},
            {"group":"polo17_mirror_R"},
            {"dragCoef":35},
            ["mi2r","mi1r","mi3r"],
            ["mi2r","mi3r","mi4r"],
            ["mi1r","mi2r","mi5r"],
            ["mi2r","mi4r","mi5r"],
            ["mi4r","mi3r","mi5r"],
            ["mi3r","mi1r","mi5r"],
            {"group":""},
    ],
},
"polo17_mirror_L_bomz": {
    "information":{
        "authors":"BeamNG",
        "name":"Left Mirror [Standard]",
        "value":210,
    },
    "slotType" : "polo17_mirror_L",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["polo17_mirror_L_bomz", ["polo17_mirror_L"]],
         {"deformGroup":"mirrorsignal_L_break", "deformMaterialBase":"polo17light", "deformMaterialDamaged":"polo17light"},
         ["polo17_mirrorsignal_L", ["polo17_mirror_L"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound2", "deformVolume":0.2}],
         {"deformGroup":""},
    ],
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":8,
             "lightColor":{"r":254, "g":150, "b":0, "a":255},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleBrakeLightFlare",
        },
        ["signal_L" ,         "SPOTLIGHT"        , "mi4l", "mi3l", "mi2l", {"x":180, "y":0, "z":-160} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.3, "y":0.3, "z":0.04},"flareScale":0.02,"lightBrightness":0.06,"deformGroup":"mirrorsignal_L_break"}],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],

         //--MIRROR--
         {"nodeMaterial":"|NM_PLASTIC"},
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":1},
         {"group":"polo17_mirror_L"},
         {"nodeWeight":0.25},
         ["mi1l", 0.81000, -0.63270, 1.03264],
         ["mi2l", 0.97000, -0.59270, 0.99264],
         ["mi3l", 0.79000, -0.64270, 0.90264],
         ["mi4l", 0.97000, -0.59270, 0.90264],
         ["mi5l", 0.89000, -0.70270, 0.94264],
         {"collision":false},
         {"selfCollision":false},
         {"group":""},
         {"nodeWeight":0.35},
         ["mi6l", 0.78000, -0.67770, 0.90264],
         ["mi7l", 0.77500, -0.66770, 0.95264],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //--MIRRORS--
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":501000,"beamDamp":20},
          {"beamDeform":2100,"beamStrength":62500},
          //l
          {"deformLimitExpansion":1.1},
          {"deformGroup":"mirrorsignal_L_break","deformationTriggerRatio":0.05},
          ["mi1l","mi2l"],
          ["mi1l","mi3l"],
          ["mi1l","mi4l"],
          ["mi1l","mi5l"],
          ["mi2l","mi3l"],
          ["mi2l","mi4l"],
          ["mi2l","mi5l"],
          ["mi3l","mi4l"],
          ["mi3l","mi5l"],
          ["mi4l","mi5l"],

          //attach
          {"deformLimitExpansion":""},
          {"beamDeform":3100,"beamStrength":5800},
          {"beamSpring":401000,"beamDamp":20},
          {"breakGroup":"mirror_L"},
          ["mi1l","mi7l"],
          ["mi2l","mi7l"],
          ["mi3l","mi7l"],
          ["mi4l","mi7l"],
          ["mi5l","mi7l"],

          ["mi1l","mi6l"],
          ["mi2l","mi6l"],
          ["mi3l","mi6l"],
          ["mi4l","mi6l"],
          ["mi5l","mi6l"],

          {"beamSpring":54600,"beamDamp":90},
          {"breakGroupType":1},
          ["mi2l","d8l"],
          ["mi4l","d8l"],
          ["mi4l","d4l"],
          ["mi4l","d5l"],
          {"breakGroupType":0},
          {"breakGroup":""},
          {"beamDeform":24000,"beamStrength":"FLT_MAX"},
          {"beamSpring":701000,"beamDamp":20},
          ["mi6l","mi7l"],
          ["mi6l","d10l"],
          ["mi7l","d10l"],
          ["mi6l","d4l"],
          ["mi7l","d4l"],
          ["mi6l","d7l"],
          ["mi7l","d7l"],

          ["mi6l","d8l"],
          ["mi7l","d8l"],
          ["mi6l","d5l"],
          ["mi7l","d5l"],
          {"breakGroup":""},
          {"deformGroup":""},
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //left mirror
            {"groundModel":"plastic"},
            {"group":"polo17_mirror_L"},
            {"dragCoef":35},
            ["mi1l","mi2l","mi3l"],
            ["mi3l","mi2l","mi4l"],
            ["mi2l","mi1l","mi5l"],
            ["mi4l","mi2l","mi5l"],
            ["mi3l","mi4l","mi5l"],
            ["mi1l","mi3l","mi5l"],
            {"group":""},
    ],
},
}