{
"revuelto_innerfender_FR":
{
    "information":{
        "authors":"BeamNG",
        "name":"Front Right Inner Fender",
        "value":150,
    },
    "slotType" : "revuelto_innerfender_FR",
    "flexbodies":[
        ["mesh", "[group]:","nonFlexMaterials"],
        ["revuelto_front_wheelhouse_R", ["revuelto_innerfender_FR", "revuelto_fender_R"]],
    ],

    "nodes":[
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_PLASTIC"},

         //--INNER FENDER--
         {"selfCollision":false},
         {"collision":true},
         {"nodeWeight":0.2},
         {"group":"revuelto_innerfender_FR"}
         ["fif1r",-0.515,-1.67,0.149],
         ["fif1rr",-0.911,-1.696,0.149],
         ["fif2r",-0.5,-1.087,0.149],
         ["fif2rr",-0.911,-0.941,0.149],
         ["fif3r",-0.5,-1.584,0.51],
         ["fif4r",-0.5,-1.14,0.51],
         {"group":"none"},
        ],
    "beams":[
          ["id1:", "id2:"],
          //--INNER FENDER--

          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

          //inner fender main shape
          {"deformLimitExpansion":1.2},
          {"beamSpring":100100,"beamDamp":50},
          {"beamDeform":14000,"beamStrength":"FLT_MAX"},
          ["fe3rrr", "fif1rr"],
          ["fif3r", "fif1r"],
          ["fif4r", "fif2r"],
          ["fe5rrr", "fif2rr"],
          ["fif2rr", "fif2r"],
          ["fif1r", "fif1rr"],
          ["fe3rrr", "fif3r"],
          ["fe5rrr", "fif4r"],
          ["fif4r", "fif3r"],

          //surficial crossing
          {"deformLimitExpansion":""},
          {"beamDeform":6000,"beamStrength":"FLT_MAX"},
          ["fif2r", "fe5rrr"],
          ["fif4r", "fif2rr"],
          ["fif1r", "fe3rrr"],
          ["fif1rr", "fif3r"],
          ["fif2r", "fif1r"],
          ["fif1r", "fif4r"],
          ["fif2r", "fif3r"],
          ["fe5rrr", "fif3r"],
          ["fe3rrr", "fif4r"],
          ["fe4rrr", "fif4r"],
          ["fe4rrr", "fif3r"],

          //rigids
          {"beamDeform":4000,"beamStrength":"FLT_MAX"},
          ["fif2r", "fe3rrr"],
          ["fif1r", "fe5rrr"],
          ["fif2rr", "fif3r"],
          ["fif1rr", "fif4r"],
          ["fif4r", "fe5rr"],
          ["fif3r", "fe4rr"],
          ["fif4r", "fe4rr"],
          ["fif3r", "fe3rr"],
          ["fif2rr", "fe5rr"],
          ["fif2r", "fe5rr"],
          ["fif1rr", "fe2rr"],
          ["fif1r", "fe2rr"],
          ["fif3r", "fe2rr"],

          //attach to subframe
          {"deformLimitExpansion":""},
          {"beamSpring":245000,"beamDamp":50},
          {"beamDeform":8500,"beamStrength":20000},
          {"breakGroup":"innerfender_FL_a"},
          ["fif1r", "fx1r"],
          ["fif1r", "fx2r"],
          ["fif2r", "fx2r"],
          ["fif2r", "fx1r"],
          ["fif1rr", "fx1r"],
          ["fif2rr", "fx2r"],
          ["fif2rr", "f1rr"],
          ["fif2rr", "f5rr"],
          {"breakGroup":"innerfender_FL_b"},
          ["fif3r", "fx3r"],
          ["fif3r", "fx4r"],
          ["fif4r", "fx4r"],
          ["fif4r", "fx3r"],
          ["fif3r", "fx1r"],
          ["fif4r", "fx2r"],
          {"breakGroup":"innerfender_FL_c"},
          {"optional":true}
          ["fif1rr", "fbs2rrr"],
          ["fif1rr", "fbs4rrr"],
          ["fif1rr", "fbs1rr"],
          ["fif1rr", "fbs2rr"],
          {"optional":false}
          {"breakGroup":""},

          //fender support beams
          {"beamType":"|SUPPORT","beamLongBound":10},
          {"beamSpring":101000,"beamDamp":10},
          {"beamDeform":8080,"beamStrength":178000},
          ["fif1r", "fx1r"],
          ["fif2r", "fx2r"],
          ["fif4r", "fx4r"],
          ["fif3r", "fx3r"],
          ["fif2r", "f2r"],
          ["fif2rr", "f2rr"],
          ["fif4r", "f7r"],
          ["fx4r", "f7rr"],
          ["fif2r", "f2rr"],
          //to front bumper support
          {"optional":true}
          ["fif1rr", "fbs2rrr"],
          ["fif1rr", "fbs1rr"],
          ["fif1r", "fbs1rr"],
          {"optional":false},

          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.2},

    ],
    "triangles": [
         ["id1:","id2:","id3:"],
         //inner fender
         {"groundModel":"metal"},
         {"group":"revuelto_innerfender_FR"},
         {"dragCoef":2},
         {"triangleType":"NONCOLLIDABLE"},
         ["fif3r",  "fe3rrr", "fe4rrr"],
         ["fif4r",  "fe4rrr", "fe5rrr"],
         ["fif3r",  "fe4rrr", "fif4r"],
         ["fif1rr", "fe3rrr", "fif3r"],
         ["fif1rr", "fif3r",  "fif1r"],
         ["fif2rr", "fif4r",  "fe5rrr"],
         ["fif2r",  "fif4r",  "fif2rr"],
         {"triangleType":"NORMALTYPE"},
         {"group":""},
    ],
},
"revuelto_innerfender_FL":
{
    "information":{
        "authors":"BeamNG",
        "name":"Front Left Inner Fender",
        "value":150,
    },
    "slotType" : "revuelto_innerfender_FL",
    "flexbodies":[
        ["mesh", "[group]:","nonFlexMaterials"],
        ["revuelto_front_wheelhouse_L", ["revuelto_innerfender_FL", "revuelto_fender_L"]],
    ],

    "nodes":[
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_PLASTIC"},

         //--INNER FENDER--
         {"selfCollision":false},
         {"collision":true},
         {"nodeWeight":0.4},
         {"group":"revuelto_innerfender_FL"}
         ["fif1l",0.515,-1.67,0.149],
         ["fif1ll",0.911,-1.696,0.149],
         ["fif2l",0.5,-1.087,0.149],
         ["fif2ll",0.911,-0.941,0.149],
         ["fif3l",0.5,-1.584,0.51],
         ["fif4l",0.5,-1.14,0.51],
         {"group":"none"},
        ],
    "beams":[
          ["id1:", "id2:"],
          //--INNER FENDER--

          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

          //inner fender main shape
          {"deformLimitExpansion":1.2},
          {"beamSpring":100100,"beamDamp":50},
          {"beamDeform":14000,"beamStrength":"FLT_MAX"},
          ["fe3lll", "fif1ll"],
          ["fif3l", "fif1l"],
          ["fif4l", "fif2l"],
          ["fe5lll", "fif2ll"],
          ["fif2ll", "fif2l"],
          ["fif1l", "fif1ll"],
          ["fe3lll", "fif3l"],
          ["fe5lll", "fif4l"],
          ["fif4l", "fif3l"],

          //surficial crossing
          {"deformLimitExpansion":""},
          {"beamDeform":6000,"beamStrength":"FLT_MAX"},
          ["fif2l", "fe5lll"],
          ["fif4l", "fif2ll"],
          ["fif1l", "fe3lll"],
          ["fif1ll", "fif3l"],
          ["fif2l", "fif1l"],
          ["fif1l", "fif4l"],
          ["fif2l", "fif3l"],
          ["fe5lll", "fif3l"],
          ["fe3lll", "fif4l"],
          ["fe4lll", "fif4l"],
          ["fe4lll", "fif3l"],

          //rigids
          {"beamDeform":4000,"beamStrength":"FLT_MAX"},
          ["fif2l", "fe3lll"],
          ["fif1l", "fe5lll"],
          ["fif2ll", "fif3l"],
          ["fif1ll", "fif4l"],
          ["fif4l", "fe5ll"],
          ["fif3l", "fe4ll"],
          ["fif4l", "fe4ll"],
          ["fif3l", "fe3ll"],
          ["fif2ll", "fe5ll"],
          ["fif2l", "fe5ll"],
          ["fif1ll", "fe2ll"],
          ["fif1l", "fe2ll"],
          ["fif3l", "fe2ll"],

          //attach to subframe
          {"deformLimitExpansion":""},
          {"beamSpring":245000,"beamDamp":50},
          {"beamDeform":8500,"beamStrength":20000},
          {"breakGroup":"innerfender_FL_a"},
          ["fif1l", "fx1l"],
          ["fif1l", "fx2l"],
          ["fif2l", "fx2l"],
          ["fif2l", "fx1l"],
          ["fif1ll", "fx1l"],
          ["fif2ll", "fx2l"],
          ["fif2ll", "f1ll"],
          ["fif2ll", "f5ll"],
          {"breakGroup":"innerfender_FL_b"},
          ["fif3l", "fx3l"],
          ["fif3l", "fx4l"],
          ["fif4l", "fx4l"],
          ["fif4l", "fx3l"],
          ["fif3l", "fx1l"],
          ["fif4l", "fx2l"],
          {"breakGroup":"innerfender_FL_c"},
          {"optional":true}
          ["fif1ll", "fbs2lll"],
          ["fif1ll", "fbs4lll"],
          ["fif1ll", "fbs1ll"],
          ["fif1ll", "fbs2ll"],
          {"optional":false}
          {"breakGroup":""},

          //fender support beams
          {"beamType":"|SUPPORT","beamLongBound":10},
          {"beamSpring":101000,"beamDamp":10},
          {"beamDeform":8080,"beamStrength":178000},
          ["fif1l", "fx1r"],
          ["fif2l", "fx2r"],
          ["fif4l", "fx4r"],
          ["fif3l", "fx3r"],
          ["fif2l", "f2l"],
          ["fif2ll", "f2ll"],
          ["fif4l", "f7l"],
          ["fx4l", "f7ll"],
          ["fif2l", "f2ll"],
          //to front bumper support
          {"optional":true}
          ["fif1ll", "fbs2lll"],
          ["fif1ll", "fbs1ll"],
          ["fif1l", "fbs1ll"],
          {"optional":false},

          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.2},

    ],
    "triangles": [
         ["id1:","id2:","id3:"],
         //inner fender
         {"groundModel":"metal"},
         {"group":"revuelto_innerfender_FL"},
         {"dragCoef":2},
         {"triangleType":"NONCOLLIDABLE"},
         ["fe3lll", "fif3l",  "fe4lll"],
         ["fe4lll", "fif4l",  "fe5lll"],
         ["fe4lll", "fif3l",  "fif4l"],
         ["fe3lll", "fif1ll", "fif3l"],
         ["fif3l",  "fif1ll", "fif1l"],
         ["fif4l",  "fif2ll", "fe5lll"],
         ["fif4l",  "fif2l",  "fif2ll"],
         {"triangleType":"NORMALTYPE"},
         {"group":""},
    ],
},
}