{
"sprtg_door_RR22":{
    "information":{
        "authors":"BeamNG",
        "name":"Rear type 2 Right Door",
        "value":200,
    },

    "slotType" : "sprtg_door_RR",

    "slots":[
        ["type", "default", "description"],
        ["sprtg_doorglass_RR","sprtg_doorglass_RR", "Rear Right Door Glass"],
        ["sprtg_doorpanel_RR","sprtg_doorpanel_RR", "Rear Right Door Panel"],
        ["sprtg_fenderflare_RR_race_door","", "Rear Right Door Fender Flare"],
    ],

    "flexbodies":[
        ["mesh", "[group]:","nonFlexMaterials"],
        ["sprtg_door_RR", ["sprtg_door_RR"]],
		        ["sprtg_door_RR.002", ["sprtg_door_RR"]],

    ],
    "sounds": {
        "$+cabinFilterCoef": 0.03
    }
    "controller": [
        ["fileName"],
        ["advancedCouplerControl", {"name":"doorRRCoupler"}],
    ]
    "doorRRCoupler":{
        "couplerNodes":[
            ["cid1",    "cid2",     "autoCouplingStrength",    "autoCouplingRadius",   "autoCouplingLockRadius",   "autoCouplingSpeed", "couplingStartRadius",  "breakGroup"]
            ["q1r",     "d28rr",     35000,                     0.01,                   0.005,                      0.2,                 0.1,                   "doorRR_latch"]
        ]
        "groupType": "autoCoupling",
        "attachSoundVolume":1,
        "detachSoundVolume":1,
        "soundNode:":["d28rr"]
        "attachSoundEvent": "event:>Vehicle>Latches>Door>modern_09_close",
        "detachSoundEvent": "event:>Vehicle>Latches>Door>modern_03_open",
        "breakSoundEvent":""
        "openForceMagnitude": 40,
        "openForceDuration": 0.5,
        "closeForceMagnitude": 80,
        "closeForceDuration": 0.5
    }
    "triggers":[
        ["id", "label", "idRef:", "idX:", "idY:", "type", "size", "baseRotation", "rotation", "translation", "baseTranslation"],
        ["door_RR", "", "d21r","d22r","d18r", "box", {"x":0.25, "y":0.02, "z":0.08}, {"x":-1, "y":0, "z":-2.0}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.18, "y":-0.01, "z":-0.02}],
        ["door_RR_int", "", "d20r","d21r","d17r", "box", {"x":0.12, "y":0.03, "z":0.07}, {"x":-10, "y":-12, "z":-7}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.224, "y":-0.077, "z":0.09}],
				["openWRR22", "", "d22r","d21r","d19r", "box", {"x":0.018, "y":0.018, "z":0.014}, {"x":15, "y":-0, "z":2}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.58, "y":0.173, "z":-0.178}, {"deformGroup":"", "color": [0.03, 0.03, 0.03, 1]}],

      ],
    "triggerEventLinks":[
        ["triggerId:triggers", "action", "targetEventId:events"],
        ["door_RR", "action0", "doorLatch_RR"],
        ["door_RR_int", "action0", "doorLatch_RR"],
    ],
    "events":[
        ["id", "title", "desc"],
        ["doorLatch_RR", "ui.inputActions.sprtg.doorLatch_RR.title", "ui.inputActions.sprtg.doorLatch_RR.description", {"onUp":"controller.getControllerSafe('doorRRCoupler').toggleGroup()"}],
    ],
		 "props": [

	  ["func", "mesh", "idRef:","idX:","idY:", "baseRotationGlobal", "rotationGlobal", "translationGlobal", "min", "max", "offset", "multiplier"],
		        {"deformGroup":"doorhinge_a_RR", "deformMaterialBase":"invis", "deformMaterialDamaged":"invis"},      
        ["doorrr_filament", "sprtg_rucRR", "d20r","d21r","d17r", {"x":0.0, "y":0.0, "z":0.0}, {"x":-0, "y":0, "z":7}, {"x":0.0, "y":0.0, "z":-0.0}, 0, 1, 0, 1, {"translationGlobal":{"x":-0.0,"y":-0.0,"z":-0.0}, "baseRotationGlobal":{"x":0,"y":0.0,"z":0.0}}],
		        ["doorrr_filament", "sprtg_rucRR2", "d20r","d21r","d17r", {"x":0.0, "y":0.0, "z":0.0}, {"x":-0, "y":0, "z":10.2}, {"x":0.0, "y":0.0, "z":-0.0}, 0, 1, 0, 1, {"translationGlobal":{"x":-0.0,"y":-0.0,"z":-0.0}, "baseRotationGlobal":{"x":0,"y":0.0,"z":0.0}}],
		],
    "nodes":[
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"nodeWeight":0.9},
         //--rear right door
         {"group":["sprtg_door_RR", "sprtg_door_RR_base"]},
         ["d15r",-0.9051,0.263,0.2214],
         ["d16r",-0.9176,0.851,0.2214],
         ["d17r",-0.9051,0.263,0.71],
         ["d18r",-0.9238,0.737,0.715, {"selfCollision":false}],
         ["d19r",-0.929,1.0961,0.72],
         ["d20r",-0.8658,0.293,0.984],
         ["d21r",-0.8518,0.765,0.998, {"selfCollision":false}],
         ["d22r",-0.8378,1.3375,1.011],
         //window frame
         {"nodeWeight":0.5},
         ["d23r",-0.774,0.322,1.183],
         ["d24r",-0.6702,0.357,1.4764],
         ["d25r",-0.6767,0.695,1.4714],
         ["d26r",-0.68,1.1557,1.4464],
         ["d27r",-0.7664,1.2917,1.172],
         //rigidifier
         {"selfCollision":false},
         {"collision":false},
         ["d28r",-0.6128,0.702,0.709, {"nodeWeight":1.8}],
         {"group":""},

         //latch node
         {"nodeWeight":0.5},
         ["d28rr", -0.7907,1.3655,0.992],
    ],
    "beams":[
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

          //rear right door
          //main shape
          {"deformLimitExpansion":1.2},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":22000,"beamStrength":"FLT_MAX"},
          //lengthwise
          ["d15r", "d16r"],
          ["d17r", "d18r"],
          ["d18r", "d19r"],
          ["d20r", "d21r"],
          ["d21r", "d22r"],
          //vertical
          ["d15r", "d17r"],
          ["d17r", "d20r"],
          ["d18r", "d21r"],
          ["d16r", "d19r"],
          ["d19r", "d22r"],

          //surficial crossing
          {"deformLimitExpansion":""},
          {"beamDeform":11500,"beamStrength":"FLT_MAX"},
          ["d15r", "d18r"],
          ["d16r", "d18r"],
          ["d16r", "d17r"],
          ["d15r", "d19r"],
          ["d19r", "d21r"],
          ["d18r", "d22r"],
          ["d18r", "d20r"],
          ["d17r", "d21r"],

          //corner rigids
          {"beamDeform":8200,"beamStrength":"FLT_MAX"},
          ["d15r", "d20r", {"beamDeform":18000}],
          ["d16r", "d22r"],
          ["d16r", "d21r"],
          ["d15r", "d21r"],

          //lengthwise
          {"beamDeform":2500,"beamStrength":"FLT_MAX"},
          ["d19r", "d17r"],
          ["d20r", "d22r"],

          //rigidifier
          {"beamDeform":5000,"beamStrength":"FLT_MAX"},
          ["d15r", "d28r", {"beamDeform":18000}],
          ["d16r", "d28r"],
          ["d17r", "d28r", {"beamDeform":18000}],
          ["d18r", "d28r"],
          ["d19r", "d28r"],
          ["d20r", "d28r", {"beamDeform":18000}],
          ["d21r", "d28r"],
          ["d22r", "d28r"],

          //window frame
          {"deformLimitExpansion":1.2},
          {"beamDeform":8000,"beamStrength":"FLT_MAX"},
          {"deformGroup":"doorglass_RR_break","deformationTriggerRatio":0.005},
          ["d20r", "d23r"],
          ["d23r", "d24r"],
          ["d24r", "d25r"],
          ["d25r", "d26r"],
          ["d26r", "d27r"],
          ["d27r", "d22r"],
          //corner rigids
          {"deformLimitExpansion":""},
          {"beamDeform":4000,"beamStrength":"FLT_MAX"},
          ["d21r", "d23r"],
          ["d23r", "d25r"],
          ["d25r", "d27r"],
          ["d27r", "d21r"],
          ["d21r", "d24r"],
          ["d21r", "d26r"],
          ["d25r", "d20r"],
          ["d25r", "d22r"],
          ["d27r", "d24r"],
          ["d23r", "d26r"],
          ["d23r", "d22r"],
          ["d27r", "d20r"],
          //rigidifier
          {"beamDeform":5000,"beamStrength":"FLT_MAX"},
          ["d28r", "d23r"],
          ["d28r", "d24r"],
          ["d28r", "d25r"],
          ["d28r", "d26r"],
          ["d28r", "d27r"],
          {"deformGroup":""},

          {"beamSpring":10,"beamDamp":50},
          ["rf3", "d24r", {"breakGroup":"door_RR_hinge_upper"}],

          //hinge
          {"beamPrecompression":1.0,"beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":20000,"beamStrength":42500},
          //upper
          {"breakGroup":"door_RR_hinge_upper"},
          ["d17r", "p4r"],
          ["d17r", "p3r"],
          ["d17r", "p6r"],
          ["d17r", "p5r"],
          ["d17r", "f8rr"],
          ["d17r", "f9rr"],
          ["d15r", "p6r"],
          ["d15r", "p5r"],
          //lower
          {"breakGroup":"door_RR_hinge_lower"},
          ["d15r", "f8rr"],
          ["d15r", "f3rr"],
          ["d15r", "f4rr"],
          ["d15r", "p3r"],
          ["d15r", "p4r"],
          ["d17r", "f3rr"],
          {"breakGroup":""},

          //limiters
          {"beamType":"|SUPPORT", "beamPrecompression":0.98, "beamLongBound":6},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":5000,"beamStrength":100000},
          //to body
          {"beamPrecompression":1.0},
          ["d16r", "f4r"],
          ["d26r", "rf3"],
          ["d24r", "rf1"],
          //b pillar
          ["d15r", "f3r"],
          ["d15r", "f8rr"],
          ["d15r", "p3r"],
          ["d15r", "p4r"],
          ["d20r", "p5r"],
          ["d20r", "p6r"],
          //["d20r", "f8rr"],

          //quarter panel
          {"beamPrecompression":0.98, "beamLongBound":12},
          ["d19r", "q7r"],
          ["d22r", "q2r"],
          ["d26r", "rf4r"],
          ["d19r", "f4rr"],
          ["d19r", "q1r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

          //latch node
          {"beamDeform":2500,"beamStrength":"FLT_MAX"},
          {"beamSpring":201000,"beamDamp":50},
          ["d22r","d28rr"],
          ["d27r","d28rr"],
          ["d19r","d28rr"],
          ["d21r","d28rr"],
          ["d28r","d28rr"],

          //pop open
          {"breakGroup":"door_RR_hinge_upper"},
          {"beamPrecompression":1.016,"beamSpring":50000,"beamDamp":1320,"beamDeform":40000,"beamStrength":10000,"breakGroupType":1,"breakGroup":"door_RR_hinge_upper","beamType":"|SUPPORT", "beamLongBound":35},
          ["f4r", "d28rr"],
          //outer detent
          {"beamPrecompression":1.5,"beamLongBound":0.1,"beamShortBound":0.1,"beamSpring":800,"beamDamp":200,"beamStrength":8000,"boundZone":0.01,"beamLimitSpring":0,"beamLimitDamp":0,"beamType":"|BOUNDED"},
          ["d18r", "f4rr"],
          //inner detent
          {"beamPrecompression":1.3},
          ["d18r", "f4rr"],
          //limiter & damping
          {"beamLongBound":0.6,"beamLimitSpring":500000,"beamLimitDamp":500,"beamShortBound":1,"beamPrecompression":1,"beamSpring":0,"beamDamp":5,"beamDeform":3000,"beamStrength":10000,"boundZone":""},
          ["d18r", "f4rr"],
          {"breakGroup":""},
          {"beamLimitSpring":0,"beamLimitDamp":0,"beamType":"|NORMAL","beamLongBound":1,"breakGroup":"","breakGroupType":0},
    ],

    "triangles":[
        ["id1:", "id2:", "id3:"],
        //door
        {"group":"sprtg_door_RR"},
        {"dragCoef":10},
        ["d18r", "d19r", "d16r"],
        ["d18r", "d16r", "d17r"],
        ["d17r", "d16r", "d15r"],
        ["d18r", "d17r", "d20r"],
        ["d21r", "d18r", "d20r"],
        ["d21r", "d19r", "d18r"],
        ["d21r", "d22r", "d19r"],

        //window
        ["d23r", "d21r", "d20r"],
        ["d25r", "d23r", "d24r"],
        ["d26r", "d27r", "d25r"],
        ["d27r", "d22r", "d21r"],
        ["d25r", "d27r", "d21r"],
        ["d21r", "d23r", "d25r"],
        ],
},
"sprtg_door_RL22":{
    "information":{
        "authors":"BeamNG",
        "name":"Rear type 2 Left Door",
        "value":200,
    },

    "slotType" : "sprtg_door_RL",

    "slots":[
        ["type", "default", "description"],
        ["sprtg_doorglass_RL","sprtg_doorglass_RL", "Rear Left Door Glass"],
        ["sprtg_doorpanel_RL","sprtg_doorpanel_RL", "Rear Left Door Panel"],
        ["sprtg_fenderflare_RL_race_door","", "Rear Left Door Fender Flare"],
    ],

    "flexbodies":[
        ["mesh", "[group]:","nonFlexMaterials"],
        ["sprtg_door_RL", ["sprtg_door_RL"]],
        ["sprtg_door_RL.002", ["sprtg_door_RL"]],
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.03
    }
    "controller": [
        ["fileName"],
        ["advancedCouplerControl", {"name":"doorRLCoupler"}],
    ]
    "doorRLCoupler":{
        "couplerNodes":[
            ["cid1",    "cid2",     "autoCouplingStrength",    "autoCouplingRadius",   "autoCouplingLockRadius",   "autoCouplingSpeed", "couplingStartRadius",  "breakGroup"]
            ["q1l",     "d28ll",     35000,                     0.01,                   0.005,                      0.2,                 0.1,                   "doorRL_latch"]
        ],
        "groupType": "autoCoupling",
        "attachSoundVolume":1,
        "detachSoundVolume":1,
        "soundNode:":["d28ll"]
        "attachSoundEvent": "event:>Vehicle>Latches>Door>modern_09_close",
        "detachSoundEvent": "event:>Vehicle>Latches>Door>modern_03_open",
        "breakSoundEvent":""
        "openForceMagnitude": 40,
        "openForceDuration": 0.5,
        "closeForceMagnitude": 80,
        "closeForceDuration": 0.5
    }
    "triggers2":[
        ["id", "label", "idRef:", "idX:", "idY:", "type", "size", "baseRotation", "rotation", "translation", "baseTranslation"],
        ["door_RL", "", "d21l","d22l","d18l", "box", {"x":0.25, "y":0.02, "z":0.09}, {"x":1, "y":0, "z":2.5}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.18, "y":-0.01, "z":-0.001}],
        ["door_RL_int", "", "d20l","d21l","d17l", "box", {"x":0.1, "y":0.05, "z":0.08}, {"x":10, "y":-12, "z":3}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.224, "y":-0.077, "z":-0.12}, {"deformGroup":"", "color": [0.03, 0.03, 0.03, 0]}],
				["openWRL22", "", "d22l","d21l","d19l", "box", {"x":0.018, "y":0.018, "z":0.014}, {"x":-15, "y":-0, "z":-2}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.58, "y":0.177, "z":0.161}, {"deformGroup":"", "color": [0.03, 0.03, 0.03, 1]}],

    ],
    "triggerEventLinks":[
        ["triggerId:triggers", "action", "targetEventId:events"],
        ["door_RL", "action0", "doorLatch_RL"],
        ["door_RL_int", "action0", "doorLatch_RL"],
    ],
    "events":[
        ["id", "title", "desc"],
        ["doorLatch_RL", "ui.inputActions.sprtg.doorLatch_RL.title", "ui.inputActions.sprtg.doorLatch_RL.description", {"onUp":"controller.getControllerSafe('doorRLCoupler').toggleGroup()"}],
    ],
	 "props": [

	  ["func", "mesh", "idRef:","idX:","idY:", "baseRotationGlobal", "rotationGlobal", "translationGlobal", "min", "max", "offset", "multiplier"],

		        {"deformGroup":"doorhinge_a_RR", "deformMaterialBase":"invis", "deformMaterialDamaged":"invis"},      
 ["doorrl_filament", "sprtg_rucRL", "d20l","d21l","d17l", {"x":0.0, "y":0.0, "z":0.0}, {"x":-0, "y":-0, "z":-7}, {"x":0.0, "y":0.0, "z":-0.0}, 0, 1, 0, 1, {"translationGlobal":{"x":-0.0,"y":-0.0,"z":-0.0}, "baseRotationGlobal":{"x":0,"y":0.0,"z":0.0}}],
		        ["doorrl_filament", "sprtg_rucRL2", "d20l","d21l","d17l", {"x":0.0, "y":0.0, "z":0.0}, {"x":-0, "y":0, "z":-10.2}, {"x":0.0, "y":0.0, "z":-0.0}, 0, 1, 0, 1, {"translationGlobal":{"x":-0.0,"y":-0.0,"z":-0.0}, "baseRotationGlobal":{"x":0,"y":0.0,"z":0.0}}],
		],
    "nodes":[
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"nodeWeight":0.9},
         //--rear left door
         {"group":["sprtg_door_RL", "sprtg_door_RL_base"]},
         ["d15l",0.9051,0.263,0.2214],
         ["d16l",0.9176,0.851,0.2214],
         ["d17l",0.9051,0.263,0.71],
         ["d18l",0.9238,0.737,0.715, {"selfCollision":false}],
         ["d19l",0.929,1.0961,0.72],
         ["d20l",0.8658,0.293,0.984],
         ["d21l",0.8518,0.765,0.998, {"selfCollision":false}],
         ["d22l",0.8378,1.3375,1.011],
         //window frame
         {"nodeWeight":0.5},
         ["d23l",0.774,0.322,1.183],
         ["d24l",0.6702,0.357,1.4764],
         ["d25l",0.6767,0.695,1.4714],
         ["d26l",0.68,1.1557,1.4464],
         ["d27l",0.7664,1.2917,1.172],
         //rigidifier
         {"selfCollision":false},
         {"collision":false},
         ["d28l",0.6128,0.702,0.709, {"nodeWeight":1.8}],
         {"group":"none"},

         //latch node
         {"nodeWeight":0.5},
         ["d28ll", 0.7907,1.3655,0.992],
    ],
    "beams":[
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

          //rear left door
          //main shape
          {"deformLimitExpansion":1.2},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":22000,"beamStrength":"FLT_MAX"},
          //lengthwise
          ["d15l", "d16l"],
          ["d17l", "d18l"],
          ["d18l", "d19l"],
          ["d20l", "d21l"],
          ["d21l", "d22l"],
          //vertical
          ["d15l", "d17l"],
          ["d17l", "d20l"],
          ["d18l", "d21l"],
          ["d16l", "d19l"],
          ["d19l", "d22l"],

          //surficial crossing
          {"deformLimitExpansion":""},
          {"beamDeform":11500,"beamStrength":"FLT_MAX"},
          ["d15l", "d18l"],
          ["d16l", "d18l"],
          ["d16l", "d17l"],
          ["d15l", "d19l"],
          ["d19l", "d21l"],
          ["d18l", "d22l"],
          ["d18l", "d20l"],
          ["d17l", "d21l"],

          //corner rigids
          {"beamDeform":8200,"beamStrength":"FLT_MAX"},
          ["d15l", "d20l", {"beamDeform":18000}],
          ["d16l", "d22l"],
          ["d16l", "d21l"],
          ["d15l", "d21l"],

          //lengthwise
          {"beamDeform":2500,"beamStrength":"FLT_MAX"},
          ["d19l", "d17l"],
          ["d20l", "d22l"],

          //rigidifier
          {"beamDeform":5000,"beamStrength":"FLT_MAX"},
          ["d15l", "d28l", {"beamDeform":18000}],
          ["d16l", "d28l"],
          ["d17l", "d28l", {"beamDeform":18000}],
          ["d18l", "d28l"],
          ["d19l", "d28l"],
          ["d20l", "d28l", {"beamDeform":18000}],
          ["d21l", "d28l"],
          ["d22l", "d28l"],

          //window frame
          {"deformLimitExpansion":1.2},
          {"beamDeform":8000,"beamStrength":"FLT_MAX"},
          {"deformGroup":"doorglass_RL_break","deformationTriggerRatio":0.005},
          ["d20l", "d23l"],
          ["d23l", "d24l"],
          ["d24l", "d25l"],
          ["d25l", "d26l"],
          ["d26l", "d27l"],
          ["d27l", "d22l"],
          //corner rigids
          {"deformLimitExpansion":""},
          {"beamDeform":4000,"beamStrength":"FLT_MAX"},
          ["d21l", "d23l"],
          ["d23l", "d25l"],
          ["d25l", "d27l"],
          ["d27l", "d21l"],
          ["d21l", "d24l"],
          ["d21l", "d26l"],
          ["d25l", "d20l"],
          ["d25l", "d22l"],
          ["d27l", "d24l"],
          ["d23l", "d26l"],
          ["d23l", "d22l"],
          ["d27l", "d20l"],
          //rigidifier
          {"beamDeform":5000,"beamStrength":"FLT_MAX"},
          ["d28l", "d23l"],
          ["d28l", "d24l"],
          ["d28l", "d25l"],
          ["d28l", "d26l"],
          ["d28l", "d27l"],
          {"deformGroup":""},

          {"beamSpring":10,"beamDamp":50},
          ["rf3", "d24l", {"breakGroup":"door_RL_hinge_upper"}],

          //hinge
          {"beamPrecompression":1.0,"beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":20000,"beamStrength":42500},
          //upper
          {"breakGroup":"door_RL_hinge_upper"},
          ["d17l", "p4l"],
          ["d17l", "p3l"],
          ["d17l", "p6l"],
          ["d17l", "p5l"],
          ["d17l", "f8ll"],
          ["d17l", "f9ll"],
          ["d15l", "p6l"],
          ["d15l", "p5l"],
          //lower
          {"breakGroup":"door_RL_hinge_lower"},
          ["d15l", "f8ll"],
          ["d15l", "f3ll"],
          ["d15l", "f4ll"],
          ["d15l", "p3l"],
          ["d15l", "p4l"],
          ["d17l", "f3ll"],
          {"breakGroup":""},

          //limiters
          {"beamType":"|SUPPORT", "beamPrecompression":0.98, "beamLongBound":6},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":5000,"beamStrength":100000},
          //to body
          {"beamPrecompression":1.0},
          ["d16l", "f4l"],
          ["d26l", "rf3"],
          ["d24l", "rf1"],
          //b pillar
          ["d15l", "f3l"],
          ["d15l", "f8ll"],
          ["d15l", "p3l"],
          ["d15l", "p4l"],
          ["d20l", "p5l"],
          ["d20l", "p6l"],
          //["d20l", "f8ll"],

          //quarter panel
          {"beamPrecompression":0.98, "beamLongBound":12},
          ["d19l", "q7l"],
          ["d22l", "q2l"],
          ["d26l", "rf4l"],
          ["d19l", "f4ll"],
          ["d19l", "q1l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

          //latch node
          {"beamDeform":2500,"beamStrength":"FLT_MAX"},
          {"beamSpring":201000,"beamDamp":50},
          ["d22l","d28ll"],
          ["d27l","d28ll"],
          ["d19l","d28ll"],
          ["d21l","d28ll"],
          ["d28l","d28ll"],

          //pop open
          {"breakGroup":"door_RL_hinge_upper"},
          {"beamPrecompression":1.016,"beamSpring":50000,"beamDamp":1320,"beamDeform":40000,"beamStrength":10000,"breakGroupType":1,"breakGroup":"door_RL_hinge_upper","beamType":"|SUPPORT", "beamLongBound":35},
          ["f4l", "d28ll"],
          //outer detent
          {"beamPrecompression":1.5,"beamLongBound":0.1,"beamShortBound":0.1,"beamSpring":800,"beamDamp":200,"beamStrength":8000,"boundZone":0.01,"beamLimitSpring":0,"beamLimitDamp":0,"beamType":"|BOUNDED"},
          ["d18l", "f4ll"],
          //inner detent
          {"beamPrecompression":1.3},
          ["d18l", "f4ll"],
          //limiter & damping
          {"beamLongBound":0.6,"beamLimitSpring":500000,"beamLimitDamp":500,"beamShortBound":1,"beamPrecompression":1,"beamSpring":0,"beamDamp":5,"beamDeform":3000,"beamStrength":10000,"boundZone":""},
          ["d18l", "f4ll"],
          {"breakGroup":""},
          {"beamLimitSpring":0,"beamLimitDamp":0,"beamType":"|NORMAL","beamLongBound":1,"breakGroup":"","breakGroupType":0},
    ],

    "triangles":[
        ["id1:", "id2:", "id3:"],
        //door
        {"group":"sprtg_door_RL"},
        {"dragCoef":10},
        ["d19l", "d18l", "d16l"],
        ["d16l", "d18l", "d17l"],
        ["d16l", "d17l", "d15l"],
        ["d17l", "d18l", "d20l"],
        ["d18l", "d21l", "d20l"],
        ["d19l", "d21l", "d18l"],
        ["d22l", "d21l", "d19l"],

        //window
        ["d21l", "d23l", "d20l"],
        ["d23l", "d25l", "d24l"],
        ["d27l", "d26l", "d25l"],
        ["d22l", "d27l", "d21l"],
        ["d27l", "d25l", "d21l"],
        ["d23l", "d21l", "d25l"],
        ],
},
"sprtg_door_RR":{
    "information":{
        "authors":"BeamNG",
        "name":"Rear Right Door",
        "value":200,
    },

    "slotType" : "sprtg_door_RR",

    "slots":[
        ["type", "default", "description"],
        ["sprtg_doorglass_RR","sprtg_doorglass_RR", "Rear Right Door Glass"],
        ["sprtg_doorpanel_RR","sprtg_doorpanel_RR", "Rear Right Door Panel"],
        ["sprtg_fenderflare_RR_race_door","", "Rear Right Door Fender Flare"],
    ],

    "flexbodies":[
        ["mesh", "[group]:","nonFlexMaterials"],
        ["sprtg_door_RR", ["sprtg_door_RR"]],
		        ["sprtg_door_RR.001", ["sprtg_door_RR"]],

    ],
    "sounds": {
        "$+cabinFilterCoef": 0.03
    }
    "controller": [
        ["fileName"],
        ["advancedCouplerControl", {"name":"doorRRCoupler"}],
    ]
    "doorRRCoupler":{
        "couplerNodes":[
            ["cid1",    "cid2",     "autoCouplingStrength",    "autoCouplingRadius",   "autoCouplingLockRadius",   "autoCouplingSpeed", "couplingStartRadius",  "breakGroup"]
            ["q1r",     "d28rr",     35000,                     0.01,                   0.005,                      0.2,                 0.1,                   "doorRR_latch"]
        ]
        "groupType": "autoCoupling",
        "attachSoundVolume":1,
        "detachSoundVolume":1,
        "soundNode:":["d28rr"]
        "attachSoundEvent": "event:>Vehicle>Latches>Door>modern_09_close",
        "detachSoundEvent": "event:>Vehicle>Latches>Door>modern_03_open",
        "breakSoundEvent":""
        "openForceMagnitude": 40,
        "openForceDuration": 0.5,
        "closeForceMagnitude": 80,
        "closeForceDuration": 0.5
    }
    "triggers":[
        ["id", "label", "idRef:", "idX:", "idY:", "type", "size", "baseRotation", "rotation", "translation", "baseTranslation"],
        ["door_RR", "", "d21r","d22r","d18r", "box", {"x":0.25, "y":0.02, "z":0.08}, {"x":-1, "y":0, "z":-2.0}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.18, "y":-0.01, "z":-0.02}],
        ["door_RR_int", "", "d20r","d21r","d17r", "box", {"x":0.12, "y":0.03, "z":0.07}, {"x":-10, "y":-12, "z":-7}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.224, "y":-0.077, "z":0.09}],
				["openWRR22", "", "d22r","d21r","d19r", "box", {"x":0.018, "y":0.018, "z":0.014}, {"x":15, "y":-0, "z":2}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.58, "y":0.173, "z":-0.178}, {"deformGroup":"", "color": [0.03, 0.03, 0.03, 1]}],

    ],
    "triggerEventLinks":[
        ["triggerId:triggers", "action", "targetEventId:events"],
        ["door_RR", "action0", "doorLatch_RR"],
        ["door_RR_int", "action0", "doorLatch_RR"],
    ],
    "events":[
        ["id", "title", "desc"],
        ["doorLatch_RR", "ui.inputActions.sprtg.doorLatch_RR.title", "ui.inputActions.sprtg.doorLatch_RR.description", {"onUp":"controller.getControllerSafe('doorRRCoupler').toggleGroup()"}],
    ],
		 "props": [

	  ["func", "mesh", "idRef:","idX:","idY:", "baseRotationGlobal", "rotationGlobal", "translationGlobal", "min", "max", "offset", "multiplier"],
		        {"deformGroup":"doorhinge_a_RR", "deformMaterialBase":"invis", "deformMaterialDamaged":"invis"},      
        ["doorrr_filament", "sprtg_rucRR", "d20r","d21r","d17r", {"x":0.0, "y":0.0, "z":0.0}, {"x":-0, "y":0, "z":7}, {"x":0.0, "y":0.0, "z":-0.0}, 0, 1, 0, 1, {"translationGlobal":{"x":-0.0,"y":-0.0,"z":-0.0}, "baseRotationGlobal":{"x":0,"y":0.0,"z":0.0}}],
		        ["doorrr_filament", "sprtg_rucRR2", "d20r","d21r","d17r", {"x":0.0, "y":0.0, "z":0.0}, {"x":-0, "y":0, "z":10.2}, {"x":0.0, "y":0.0, "z":-0.0}, 0, 1, 0, 1, {"translationGlobal":{"x":-0.0,"y":-0.0,"z":-0.0}, "baseRotationGlobal":{"x":0,"y":0.0,"z":0.0}}],
		],
    "nodes":[
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"nodeWeight":0.9},
         //--rear right door
         {"group":["sprtg_door_RR", "sprtg_door_RR_base"]},
         ["d15r",-0.9051,0.263,0.2214],
         ["d16r",-0.9176,0.851,0.2214],
         ["d17r",-0.9051,0.263,0.71],
         ["d18r",-0.9238,0.737,0.715, {"selfCollision":false}],
         ["d19r",-0.929,1.0961,0.72],
         ["d20r",-0.8658,0.293,0.984],
         ["d21r",-0.8518,0.765,0.998, {"selfCollision":false}],
         ["d22r",-0.8378,1.3375,1.011],
         //window frame
         {"nodeWeight":0.5},
         ["d23r",-0.774,0.322,1.183],
         ["d24r",-0.6702,0.357,1.4764],
         ["d25r",-0.6767,0.695,1.4714],
         ["d26r",-0.68,1.1557,1.4464],
         ["d27r",-0.7664,1.2917,1.172],
         //rigidifier
         {"selfCollision":false},
         {"collision":false},
         ["d28r",-0.6128,0.702,0.709, {"nodeWeight":1.8}],
         {"group":""},

         //latch node
         {"nodeWeight":0.5},
         ["d28rr", -0.7907,1.3655,0.992],
    ],
    "beams":[
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

          //rear right door
          //main shape
          {"deformLimitExpansion":1.2},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":22000,"beamStrength":"FLT_MAX"},
          //lengthwise
          ["d15r", "d16r"],
          ["d17r", "d18r"],
          ["d18r", "d19r"],
          ["d20r", "d21r"],
          ["d21r", "d22r"],
          //vertical
          ["d15r", "d17r"],
          ["d17r", "d20r"],
          ["d18r", "d21r"],
          ["d16r", "d19r"],
          ["d19r", "d22r"],

          //surficial crossing
          {"deformLimitExpansion":""},
          {"beamDeform":11500,"beamStrength":"FLT_MAX"},
          ["d15r", "d18r"],
          ["d16r", "d18r"],
          ["d16r", "d17r"],
          ["d15r", "d19r"],
          ["d19r", "d21r"],
          ["d18r", "d22r"],
          ["d18r", "d20r"],
          ["d17r", "d21r"],

          //corner rigids
          {"beamDeform":8200,"beamStrength":"FLT_MAX"},
          ["d15r", "d20r", {"beamDeform":18000}],
          ["d16r", "d22r"],
          ["d16r", "d21r"],
          ["d15r", "d21r"],

          //lengthwise
          {"beamDeform":2500,"beamStrength":"FLT_MAX"},
          ["d19r", "d17r"],
          ["d20r", "d22r"],

          //rigidifier
          {"beamDeform":5000,"beamStrength":"FLT_MAX"},
          ["d15r", "d28r", {"beamDeform":18000}],
          ["d16r", "d28r"],
          ["d17r", "d28r", {"beamDeform":18000}],
          ["d18r", "d28r"],
          ["d19r", "d28r"],
          ["d20r", "d28r", {"beamDeform":18000}],
          ["d21r", "d28r"],
          ["d22r", "d28r"],

          //window frame
          {"deformLimitExpansion":1.2},
          {"beamDeform":8000,"beamStrength":"FLT_MAX"},
          {"deformGroup":"doorglass_RR_break","deformationTriggerRatio":0.005},
          ["d20r", "d23r"],
          ["d23r", "d24r"],
          ["d24r", "d25r"],
          ["d25r", "d26r"],
          ["d26r", "d27r"],
          ["d27r", "d22r"],
          //corner rigids
          {"deformLimitExpansion":""},
          {"beamDeform":4000,"beamStrength":"FLT_MAX"},
          ["d21r", "d23r"],
          ["d23r", "d25r"],
          ["d25r", "d27r"],
          ["d27r", "d21r"],
          ["d21r", "d24r"],
          ["d21r", "d26r"],
          ["d25r", "d20r"],
          ["d25r", "d22r"],
          ["d27r", "d24r"],
          ["d23r", "d26r"],
          ["d23r", "d22r"],
          ["d27r", "d20r"],
          //rigidifier
          {"beamDeform":5000,"beamStrength":"FLT_MAX"},
          ["d28r", "d23r"],
          ["d28r", "d24r"],
          ["d28r", "d25r"],
          ["d28r", "d26r"],
          ["d28r", "d27r"],
          {"deformGroup":""},

          {"beamSpring":10,"beamDamp":50},
          ["rf3", "d24r", {"breakGroup":"door_RR_hinge_upper"}],

          //hinge
          {"beamPrecompression":1.0,"beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":20000,"beamStrength":42500},
          //upper
          {"breakGroup":"door_RR_hinge_upper"},
          ["d17r", "p4r"],
          ["d17r", "p3r"],
          ["d17r", "p6r"],
          ["d17r", "p5r"],
          ["d17r", "f8rr"],
          ["d17r", "f9rr"],
          ["d15r", "p6r"],
          ["d15r", "p5r"],
          //lower
          {"breakGroup":"door_RR_hinge_lower"},
          ["d15r", "f8rr"],
          ["d15r", "f3rr"],
          ["d15r", "f4rr"],
          ["d15r", "p3r"],
          ["d15r", "p4r"],
          ["d17r", "f3rr"],
          {"breakGroup":""},

          //limiters
          {"beamType":"|SUPPORT", "beamPrecompression":0.98, "beamLongBound":6},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":5000,"beamStrength":100000},
          //to body
          {"beamPrecompression":1.0},
          ["d16r", "f4r"],
          ["d26r", "rf3"],
          ["d24r", "rf1"],
          //b pillar
          ["d15r", "f3r"],
          ["d15r", "f8rr"],
          ["d15r", "p3r"],
          ["d15r", "p4r"],
          ["d20r", "p5r"],
          ["d20r", "p6r"],
          //["d20r", "f8rr"],

          //quarter panel
          {"beamPrecompression":0.98, "beamLongBound":12},
          ["d19r", "q7r"],
          ["d22r", "q2r"],
          ["d26r", "rf4r"],
          ["d19r", "f4rr"],
          ["d19r", "q1r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

          //latch node
          {"beamDeform":2500,"beamStrength":"FLT_MAX"},
          {"beamSpring":201000,"beamDamp":50},
          ["d22r","d28rr"],
          ["d27r","d28rr"],
          ["d19r","d28rr"],
          ["d21r","d28rr"],
          ["d28r","d28rr"],

          //pop open
          {"breakGroup":"door_RR_hinge_upper"},
          {"beamPrecompression":1.016,"beamSpring":50000,"beamDamp":1320,"beamDeform":40000,"beamStrength":10000,"breakGroupType":1,"breakGroup":"door_RR_hinge_upper","beamType":"|SUPPORT", "beamLongBound":35},
          ["f4r", "d28rr"],
          //outer detent
          {"beamPrecompression":1.5,"beamLongBound":0.1,"beamShortBound":0.1,"beamSpring":800,"beamDamp":200,"beamStrength":8000,"boundZone":0.01,"beamLimitSpring":0,"beamLimitDamp":0,"beamType":"|BOUNDED"},
          ["d18r", "f4rr"],
          //inner detent
          {"beamPrecompression":1.3},
          ["d18r", "f4rr"],
          //limiter & damping
          {"beamLongBound":0.6,"beamLimitSpring":500000,"beamLimitDamp":500,"beamShortBound":1,"beamPrecompression":1,"beamSpring":0,"beamDamp":5,"beamDeform":3000,"beamStrength":10000,"boundZone":""},
          ["d18r", "f4rr"],
          {"breakGroup":""},
          {"beamLimitSpring":0,"beamLimitDamp":0,"beamType":"|NORMAL","beamLongBound":1,"breakGroup":"","breakGroupType":0},
    ],

    "triangles":[
        ["id1:", "id2:", "id3:"],
        //door
        {"group":"sprtg_door_RR"},
        {"dragCoef":10},
        ["d18r", "d19r", "d16r"],
        ["d18r", "d16r", "d17r"],
        ["d17r", "d16r", "d15r"],
        ["d18r", "d17r", "d20r"],
        ["d21r", "d18r", "d20r"],
        ["d21r", "d19r", "d18r"],
        ["d21r", "d22r", "d19r"],

        //window
        ["d23r", "d21r", "d20r"],
        ["d25r", "d23r", "d24r"],
        ["d26r", "d27r", "d25r"],
        ["d27r", "d22r", "d21r"],
        ["d25r", "d27r", "d21r"],
        ["d21r", "d23r", "d25r"],
        ],
},
"sprtg_door_RL":{
    "information":{
        "authors":"BeamNG",
        "name":"Rear Left Door",
        "value":200,
    },

    "slotType" : "sprtg_door_RL",

    "slots":[
        ["type", "default", "description"],
        ["sprtg_doorglass_RL","sprtg_doorglass_RL", "Rear Left Door Glass"],
        ["sprtg_doorpanel_RL","sprtg_doorpanel_RL", "Rear Left Door Panel"],
        ["sprtg_fenderflare_RL_race_door","", "Rear Left Door Fender Flare"],
    ],

    "flexbodies":[
        ["mesh", "[group]:","nonFlexMaterials"],
        ["sprtg_door_RL", ["sprtg_door_RL"]],
        ["sprtg_door_RL.001", ["sprtg_door_RL"]],
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.03
    }
    "controller": [
        ["fileName"],
        ["advancedCouplerControl", {"name":"doorRLCoupler"}],
    ]
    "doorRLCoupler":{
        "couplerNodes":[
            ["cid1",    "cid2",     "autoCouplingStrength",    "autoCouplingRadius",   "autoCouplingLockRadius",   "autoCouplingSpeed", "couplingStartRadius",  "breakGroup"]
            ["q1l",     "d28ll",     35000,                     0.01,                   0.005,                      0.2,                 0.1,                   "doorRL_latch"]
        ],
        "groupType": "autoCoupling",
        "attachSoundVolume":1,
        "detachSoundVolume":1,
        "soundNode:":["d28ll"]
        "attachSoundEvent": "event:>Vehicle>Latches>Door>modern_09_close",
        "detachSoundEvent": "event:>Vehicle>Latches>Door>modern_03_open",
        "breakSoundEvent":""
        "openForceMagnitude": 40,
        "openForceDuration": 0.5,
        "closeForceMagnitude": 80,
        "closeForceDuration": 0.5
    }
    "triggers":[
        ["id", "label", "idRef:", "idX:", "idY:", "type", "size", "baseRotation", "rotation", "translation", "baseTranslation"],
          ["door_RL", "", "d21l","d22l","d18l", "box", {"x":0.25, "y":0.02, "z":0.09}, {"x":1, "y":0, "z":2.5}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.18, "y":-0.01, "z":-0.001}],
        ["door_RL_int", "", "d20l","d21l","d17l", "box", {"x":0.1, "y":0.05, "z":0.08}, {"x":10, "y":-12, "z":3}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.224, "y":-0.077, "z":-0.12}, {"deformGroup":"", "color": [0.03, 0.03, 0.03, 0]}],
				["openWRL22", "", "d22l","d21l","d19l", "box", {"x":0.018, "y":0.018, "z":0.014}, {"x":-15, "y":-0, "z":-2}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.58, "y":0.177, "z":0.161}, {"deformGroup":"", "color": [0.03, 0.03, 0.03, 1]}],

    ],
    "triggerEventLinks":[
        ["triggerId:triggers", "action", "targetEventId:events"],
        ["door_RL", "action0", "doorLatch_RL"],
        ["door_RL_int", "action0", "doorLatch_RL"],
    ],
    "events":[
        ["id", "title", "desc"],
        ["doorLatch_RL", "ui.inputActions.sprtg.doorLatch_RL.title", "ui.inputActions.sprtg.doorLatch_RL.description", {"onUp":"controller.getControllerSafe('doorRLCoupler').toggleGroup()"}],
    ],
	 "props": [

	  ["func", "mesh", "idRef:","idX:","idY:", "baseRotationGlobal", "rotationGlobal", "translationGlobal", "min", "max", "offset", "multiplier"],

		        {"deformGroup":"doorhinge_a_RR", "deformMaterialBase":"invis", "deformMaterialDamaged":"invis"},      
 ["doorrl_filament", "sprtg_rucRL", "d20l","d21l","d17l", {"x":0.0, "y":0.0, "z":0.0}, {"x":-0, "y":-0, "z":-7}, {"x":0.0, "y":0.0, "z":-0.0}, 0, 1, 0, 1, {"translationGlobal":{"x":-0.0,"y":-0.0,"z":-0.0}, "baseRotationGlobal":{"x":0,"y":0.0,"z":0.0}}],
		        ["doorrl_filament", "sprtg_rucRL2", "d20l","d21l","d17l", {"x":0.0, "y":0.0, "z":0.0}, {"x":-0, "y":0, "z":-10.2}, {"x":0.0, "y":0.0, "z":-0.0}, 0, 1, 0, 1, {"translationGlobal":{"x":-0.0,"y":-0.0,"z":-0.0}, "baseRotationGlobal":{"x":0,"y":0.0,"z":0.0}}],
		],
    "nodes":[
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"nodeWeight":0.9},
         //--rear left door
         {"group":["sprtg_door_RL", "sprtg_door_RL_base"]},
         ["d15l",0.9051,0.263,0.2214],
         ["d16l",0.9176,0.851,0.2214],
         ["d17l",0.9051,0.263,0.71],
         ["d18l",0.9238,0.737,0.715, {"selfCollision":false}],
         ["d19l",0.929,1.0961,0.72],
         ["d20l",0.8658,0.293,0.984],
         ["d21l",0.8518,0.765,0.998, {"selfCollision":false}],
         ["d22l",0.8378,1.3375,1.011],
         //window frame
         {"nodeWeight":0.5},
         ["d23l",0.774,0.322,1.183],
         ["d24l",0.6702,0.357,1.4764],
         ["d25l",0.6767,0.695,1.4714],
         ["d26l",0.68,1.1557,1.4464],
         ["d27l",0.7664,1.2917,1.172],
         //rigidifier
         {"selfCollision":false},
         {"collision":false},
         ["d28l",0.6128,0.702,0.709, {"nodeWeight":1.8}],
         {"group":"none"},

         //latch node
         {"nodeWeight":0.5},
         ["d28ll", 0.7907,1.3655,0.992],
    ],
    "beams":[
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

          //rear left door
          //main shape
          {"deformLimitExpansion":1.2},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":22000,"beamStrength":"FLT_MAX"},
          //lengthwise
          ["d15l", "d16l"],
          ["d17l", "d18l"],
          ["d18l", "d19l"],
          ["d20l", "d21l"],
          ["d21l", "d22l"],
          //vertical
          ["d15l", "d17l"],
          ["d17l", "d20l"],
          ["d18l", "d21l"],
          ["d16l", "d19l"],
          ["d19l", "d22l"],

          //surficial crossing
          {"deformLimitExpansion":""},
          {"beamDeform":11500,"beamStrength":"FLT_MAX"},
          ["d15l", "d18l"],
          ["d16l", "d18l"],
          ["d16l", "d17l"],
          ["d15l", "d19l"],
          ["d19l", "d21l"],
          ["d18l", "d22l"],
          ["d18l", "d20l"],
          ["d17l", "d21l"],

          //corner rigids
          {"beamDeform":8200,"beamStrength":"FLT_MAX"},
          ["d15l", "d20l", {"beamDeform":18000}],
          ["d16l", "d22l"],
          ["d16l", "d21l"],
          ["d15l", "d21l"],

          //lengthwise
          {"beamDeform":2500,"beamStrength":"FLT_MAX"},
          ["d19l", "d17l"],
          ["d20l", "d22l"],

          //rigidifier
          {"beamDeform":5000,"beamStrength":"FLT_MAX"},
          ["d15l", "d28l", {"beamDeform":18000}],
          ["d16l", "d28l"],
          ["d17l", "d28l", {"beamDeform":18000}],
          ["d18l", "d28l"],
          ["d19l", "d28l"],
          ["d20l", "d28l", {"beamDeform":18000}],
          ["d21l", "d28l"],
          ["d22l", "d28l"],

          //window frame
          {"deformLimitExpansion":1.2},
          {"beamDeform":8000,"beamStrength":"FLT_MAX"},
          {"deformGroup":"doorglass_RL_break","deformationTriggerRatio":0.005},
          ["d20l", "d23l"],
          ["d23l", "d24l"],
          ["d24l", "d25l"],
          ["d25l", "d26l"],
          ["d26l", "d27l"],
          ["d27l", "d22l"],
          //corner rigids
          {"deformLimitExpansion":""},
          {"beamDeform":4000,"beamStrength":"FLT_MAX"},
          ["d21l", "d23l"],
          ["d23l", "d25l"],
          ["d25l", "d27l"],
          ["d27l", "d21l"],
          ["d21l", "d24l"],
          ["d21l", "d26l"],
          ["d25l", "d20l"],
          ["d25l", "d22l"],
          ["d27l", "d24l"],
          ["d23l", "d26l"],
          ["d23l", "d22l"],
          ["d27l", "d20l"],
          //rigidifier
          {"beamDeform":5000,"beamStrength":"FLT_MAX"},
          ["d28l", "d23l"],
          ["d28l", "d24l"],
          ["d28l", "d25l"],
          ["d28l", "d26l"],
          ["d28l", "d27l"],
          {"deformGroup":""},

          {"beamSpring":10,"beamDamp":50},
          ["rf3", "d24l", {"breakGroup":"door_RL_hinge_upper"}],

          //hinge
          {"beamPrecompression":1.0,"beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":20000,"beamStrength":42500},
          //upper
          {"breakGroup":"door_RL_hinge_upper"},
          ["d17l", "p4l"],
          ["d17l", "p3l"],
          ["d17l", "p6l"],
          ["d17l", "p5l"],
          ["d17l", "f8ll"],
          ["d17l", "f9ll"],
          ["d15l", "p6l"],
          ["d15l", "p5l"],
          //lower
          {"breakGroup":"door_RL_hinge_lower"},
          ["d15l", "f8ll"],
          ["d15l", "f3ll"],
          ["d15l", "f4ll"],
          ["d15l", "p3l"],
          ["d15l", "p4l"],
          ["d17l", "f3ll"],
          {"breakGroup":""},

          //limiters
          {"beamType":"|SUPPORT", "beamPrecompression":0.98, "beamLongBound":6},
          {"beamSpring":901000,"beamDamp":50},
          {"beamDeform":5000,"beamStrength":100000},
          //to body
          {"beamPrecompression":1.0},
          ["d16l", "f4l"],
          ["d26l", "rf3"],
          ["d24l", "rf1"],
          //b pillar
          ["d15l", "f3l"],
          ["d15l", "f8ll"],
          ["d15l", "p3l"],
          ["d15l", "p4l"],
          ["d20l", "p5l"],
          ["d20l", "p6l"],
          //["d20l", "f8ll"],

          //quarter panel
          {"beamPrecompression":0.98, "beamLongBound":12},
          ["d19l", "q7l"],
          ["d22l", "q2l"],
          ["d26l", "rf4l"],
          ["d19l", "f4ll"],
          ["d19l", "q1l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},

          //latch node
          {"beamDeform":2500,"beamStrength":"FLT_MAX"},
          {"beamSpring":201000,"beamDamp":50},
          ["d22l","d28ll"],
          ["d27l","d28ll"],
          ["d19l","d28ll"],
          ["d21l","d28ll"],
          ["d28l","d28ll"],

          //pop open
          {"breakGroup":"door_RL_hinge_upper"},
          {"beamPrecompression":1.016,"beamSpring":50000,"beamDamp":1320,"beamDeform":40000,"beamStrength":10000,"breakGroupType":1,"breakGroup":"door_RL_hinge_upper","beamType":"|SUPPORT", "beamLongBound":35},
          ["f4l", "d28ll"],
          //outer detent
          {"beamPrecompression":1.5,"beamLongBound":0.1,"beamShortBound":0.1,"beamSpring":800,"beamDamp":200,"beamStrength":8000,"boundZone":0.01,"beamLimitSpring":0,"beamLimitDamp":0,"beamType":"|BOUNDED"},
          ["d18l", "f4ll"],
          //inner detent
          {"beamPrecompression":1.3},
          ["d18l", "f4ll"],
          //limiter & damping
          {"beamLongBound":0.6,"beamLimitSpring":500000,"beamLimitDamp":500,"beamShortBound":1,"beamPrecompression":1,"beamSpring":0,"beamDamp":5,"beamDeform":3000,"beamStrength":10000,"boundZone":""},
          ["d18l", "f4ll"],
          {"breakGroup":""},
          {"beamLimitSpring":0,"beamLimitDamp":0,"beamType":"|NORMAL","beamLongBound":1,"breakGroup":"","breakGroupType":0},
    ],

    "triangles":[
        ["id1:", "id2:", "id3:"],
        //door
        {"group":"sprtg_door_RL"},
        {"dragCoef":10},
        ["d19l", "d18l", "d16l"],
        ["d16l", "d18l", "d17l"],
        ["d16l", "d17l", "d15l"],
        ["d17l", "d18l", "d20l"],
        ["d18l", "d21l", "d20l"],
        ["d19l", "d21l", "d18l"],
        ["d22l", "d21l", "d19l"],

        //window
        ["d21l", "d23l", "d20l"],
        ["d23l", "d25l", "d24l"],
        ["d27l", "d26l", "d25l"],
        ["d22l", "d27l", "d21l"],
        ["d27l", "d25l", "d21l"],
        ["d23l", "d21l", "d25l"],
        ],
},
"sprtg_doorpanel_RR": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Right Door Panel",
        "value":100,
    },
    "slotType" : "sprtg_doorpanel_RR",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["sprtg_doorpanel_RR", ["sprtg_door_RR"]],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.03
    }
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //rigidifier
         {"selfCollision":false},
         {"collision":false},
         {"nodeWeight":15.4},
         {"group":["sprtg_door_RR", "sprtg_door_RR_base"]},
         ["d28r",-0.589,0.702,0.709],
         {"group":""},
    ],
},
"sprtg_doorpanel_RL": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Left Door Panel",
        "value":100,
    },
    "slotType" : "sprtg_doorpanel_RL",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["sprtg_doorpanel_RL", ["sprtg_door_RL"]],
         {"deformGroup":""},
    ],
    "sounds": {
        "$+cabinFilterCoef": 0.03
    }
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //rigidifier
         {"selfCollision":false},
         {"collision":false},
         {"nodeWeight":15.4},
         {"group":["sprtg_door_RL", "sprtg_door_RL_base"]},
         ["d28l",0.589,0.702,0.709],
         {"group":""},
    ],
},
}