{
"sprtg_hzcho": {
    "information":{
        "authors":"kws",
        "name":"Tailgate Shelf",
        "value":240,
    },
    "slotType" : "sprtg_hzcho",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["sprtg_hzcho", ["sprtg_hzcho"]],
    ],
		 "triggers2":[
        ["id", "label", "idRef:", "idX:", "idY:", "type", "size", "baseRotation", "rotation", "translation", "baseTranslation"],
      ["hzcho", "", "hz3","hz1","hz2", "box", {"x":0.12, "y":0.03, "z":0.03}, {"x":0, "y":-0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.45, "y":-0.05, "z":-0.015},{"x":0, "y":0, "z":-0.0}, {"deformGroup":"", "color": [0.04, 0.04, 0.05, 1]}],
	  ],
	      "triggerEventLinks":[
        ["triggerId:triggers", "action", "targetEventId:events"],
		        ["hzcho", "action0", "hzcho"],
		],
		   "events":[
        ["id", "title", "desc"],			
							["hzcho", "2", "2", {"onUp":"electrics.values.hzcho = 1 - (electrics.values.hzcho or 0)", "order": 1}],
],
	  	"nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"collision":true},
         {"selfCollision":true},
         //scope
         {"nodeWeight":0.7},
         {"group":"sprtg_hzcho"},
         ["hz1", -0.5265, 2.2307, 1.127],
         ["hz2", 0.5266, 1.4843, 1.128],
         ["hz3", 0.5266, 2.2218, 1.128],
         ["hz4", -0.5265, 1.477, 1.127],

		          {"group":"sprtg_hzcho2"},
		          {"collision":false},
		          {"selfCollision":false},

		          ["hz11", -0.5265, 2.2307, 1.1143],
         ["hz22", 0.5266, 1.4843, 1.1143],
         ["hz33", 0.5266, 2.2218, 1.1143],
         ["hz44", -0.5265, 1.477, 1.1143],
         //rigidifier
         {"group":""},
		          {"collision":false},
    ],
	
    "beams": [
          ["id1:", "id2:"],
          {"breakGroupType":0},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamDeform":555,"beamStrength":175000},
          {"beamSpring":801000,"beamDamp":100},
          {"deformationTriggerRatio":0.03},
          //main shape
          {"deformLimitExpansion":1.1},
                   {"disableTriangleBreaking":true},

		   
		   


          ["hz33","hz22"],
		   ["hz44", "hz11"],

          {"beamDeform":4500,"beamStrength":"FLT_MAX"},
          //vert

          //surficial crossing
          {"deformLimitExpansion":""},
          {"beamDeform":13972.5,"beamStrength":175000},





          //rigidifier
          {"beamDeform":6682.5,"beamStrength":175000},

          //attach
          {"disableTriangleBreaking":true},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamDeform":450500,"beamStrength":4444150},
          {"beamSpring":801000,"beamDamp":100},

            ["hz4", "q5r"],
           ["hz4", "q2r"],
            ["hz4", "q4r"],
            ["hz4", "q1r"],
            ["hz2", "q5l"],
           ["hz2", "q2l"],
            ["hz2", "q4l"],
            ["hz2", "q1l"],



            ["hz44", "q5r"],
           ["hz44", "q2r"],
            ["hz44", "q4r"],
            ["hz44", "q1r"],
            ["hz22", "q5l"],
           ["hz22", "q2l"],
            ["hz22", "q4l"],
            ["hz22", "q1l"],

            ["hz11", "q1r"],
            ["hz33", "q5l"],
			
            ["hz11", "q5r"],
           ["hz11", "q2r"],
            ["hz11", "q4r"],
            ["hz11", "q1r"],
            ["hz33", "q5l"],
           ["hz33", "q2l"],
            ["hz33", "q4l"],
            ["hz33", "q1l"],


          //support beams
          {"beamType":"|SUPPORT", "beamLongBound":8},
          {"beamSpring":830830,"beamDamp":100.8},
          {"beamDeform":10125,"beamStrength":630000},
          //hood
          {"optional":true},
          //["hz1","q2l"],
         //["hz1r","p11l"],
          //["hz1l","p10l"],
          

          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.0},
        ["hz8","hz9"],
		
          {"beamSpring":200,"beamDamp":100},
          {"beamPrecompression":1.0, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"disableTriangleBreaking":true},
        ["hz3","hz1"],

    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            {"group":"sprtg_hzcho"},
            {"hzroundModel":"plastic"},
            {"dragCoef":8},
            ["hz2", "hz3", "hz1"],
            ["hz2", "hz1", "hz4"],
            {"group":""},
            //gap
            {"dragCoef":0},
            //{"optional":true}
            //{"breakGroup":["scope_body","hood_body"]}
            //["p11l","hz1r","hz1"],
            //["p11l","hz1","q2l"],
            //["p10l","hz1","hz1l"],
            //["q2l","hz1","p10l"],
            //{"optional":false}
            {"breakGroup":""},
    ],
	"rails": {
      "Rail1":{"links:":["hz33", "hz22"], "looped":false, "capped":true}
	        "Rail2":{"links:":["hz44", "hz11"], "looped":false, "capped":true}

},
"slidenodes": [
    ["id:", "railName", "attached", "fixToRail", "tolerance", "spring", "strength", "capStrength"],
    ["hz3", "Rail1", true, true, 0.0, 1001000, "10000", "FLT_MAX"],
    ["hz1", "Rail2", true, true, 0.0, 1001000, "10000", "FLT_MAX"],
],
	 "hydros": [
            ["id1:", "id2:"],
            {"beamDeform":30000,"beamStrength":150000},
            {"beamSpring":25500,"beamDamp":250},
            {"beamLimitSpring":0,"beamLimitDamp":0},
            ["hz22","hz3",{"inputSource":"hzcho","inLimit":1.0,"outLimit":0.1,"inRate":0.71,"outRate":10.0,"inputFactor":1}],
            ["hz44","hz1",{"inputSource":"hzcho","inLimit":1.0,"outLimit":0.1,"inRate":0.71,"outRate":10.0,"inputFactor":1}],
            {"beamSpring":10500,"beamDamp":250},
            {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],

},
"sprtg_hzchos": {
    "information":{
        "authors":"kws",
        "name":"Tailgate Shelf",
        "value":240,
    },
    "slotType" : "sprtg_hzchos",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["sprtg_hzchos", ["sprtg_hzcho"]],
    ],
		 "triggers2":[
        ["id", "label", "idRef:", "idX:", "idY:", "type", "size", "baseRotation", "rotation", "translation", "baseTranslation"],
      ["hzcho", "", "hz3","hz1","hz2", "box", {"x":0.12, "y":0.03, "z":0.03}, {"x":0, "y":-0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.45, "y":-0.05, "z":-0.015},{"x":0, "y":0, "z":-0.0}, {"deformGroup":"", "color": [0.04, 0.04, 0.05, 1]}],
	  ],
	      "triggerEventLinks":[
        ["triggerId:triggers", "action", "targetEventId:events"],
		        ["hzcho", "action0", "hzcho"],
		],
		   "events":[
        ["id", "title", "desc"],			
							["hzcho", "2", "2", {"onUp":"electrics.values.hzcho = 1 - (electrics.values.hzcho or 0)", "order": 1}],
],
	  	"nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"collision":true},
         {"selfCollision":true},
         //scope
         {"nodeWeight":0.7},
         {"group":"sprtg_hzcho"},
         ["hz1", -0.5265, 2.0650, 1.127],
         ["hz2", 0.5266, 1.4843, 1.128],
         ["hz3", 0.5266, 2.0561, 1.128],
         ["hz4", -0.5265, 1.477, 1.127],

		          {"group":"sprtg_hzcho2"},
		          {"collision":false},
		          {"selfCollision":false},

		          ["hz11", -0.5265, 2.0650, 1.1143],
         ["hz22", 0.5266, 1.4843, 1.1143],
         ["hz33", 0.5266, 2.0561, 1.1143],
         ["hz44", -0.5265, 1.477, 1.1143],
         //rigidifier
         {"group":""},
		          {"collision":false},
    ],
	
    "beams": [
          ["id1:", "id2:"],
          {"breakGroupType":0},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamDeform":555,"beamStrength":175000},
          {"beamSpring":801000,"beamDamp":100},
          {"deformationTriggerRatio":0.03},
          //main shape
          {"deformLimitExpansion":1.1},
                   {"disableTriangleBreaking":true},

		   
		   


          ["hz33","hz22"],
		   ["hz44", "hz11"],

          {"beamDeform":4500,"beamStrength":"FLT_MAX"},
          //vert

          //surficial crossing
          {"deformLimitExpansion":""},
          {"beamDeform":13972.5,"beamStrength":175000},





          //rigidifier
          {"beamDeform":6682.5,"beamStrength":175000},

          //attach
          {"disableTriangleBreaking":true},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamDeform":450500,"beamStrength":4444150},
          {"beamSpring":801000,"beamDamp":100},

            ["hz4", "q5r"],
           ["hz4", "q2r"],
            ["hz4", "q4r"],
            ["hz4", "q1r"],
            ["hz2", "q5l"],
           ["hz2", "q2l"],
            ["hz2", "q4l"],
            ["hz2", "q1l"],



            ["hz44", "q5r"],
           ["hz44", "q2r"],
            ["hz44", "q4r"],
            ["hz44", "q1r"],
            ["hz22", "q5l"],
           ["hz22", "q2l"],
            ["hz22", "q4l"],
            ["hz22", "q1l"],

            ["hz11", "q1r"],
            ["hz33", "q5l"],
			
            ["hz11", "q5r"],
           ["hz11", "q2r"],
            ["hz11", "q4r"],
            ["hz11", "q1r"],
            ["hz33", "q5l"],
           ["hz33", "q2l"],
            ["hz33", "q4l"],
            ["hz33", "q1l"],


          //support beams
          {"beamType":"|SUPPORT", "beamLongBound":8},
          {"beamSpring":830830,"beamDamp":100.8},
          {"beamDeform":10125,"beamStrength":630000},
          //hood
          {"optional":true},
          //["hz1","q2l"],
         //["hz1r","p11l"],
          //["hz1l","p10l"],
          

          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.0},
        ["hz8","hz9"],
		
          {"beamSpring":200,"beamDamp":100},
          {"beamPrecompression":1.0, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"disableTriangleBreaking":true},
        ["hz3","hz1"],

    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            {"group":"sprtg_hzcho"},
            {"hzroundModel":"plastic"},
            {"dragCoef":8},
            ["hz2", "hz3", "hz1"],
            ["hz2", "hz1", "hz4"],
            {"group":""},
            //gap
            {"dragCoef":0},
            //{"optional":true}
            //{"breakGroup":["scope_body","hood_body"]}
            //["p11l","hz1r","hz1"],
            //["p11l","hz1","q2l"],
            //["p10l","hz1","hz1l"],
            //["q2l","hz1","p10l"],
            //{"optional":false}
            {"breakGroup":""},
    ],
	"rails": {
      "Rail1":{"links:":["hz33", "hz22"], "looped":false, "capped":true}
	        "Rail2":{"links:":["hz44", "hz11"], "looped":false, "capped":true}

},
"slidenodes": [
    ["id:", "railName", "attached", "fixToRail", "tolerance", "spring", "strength", "capStrength"],
    ["hz3", "Rail1", true, true, 0.0, 1001000, "10000", "FLT_MAX"],
    ["hz1", "Rail2", true, true, 0.0, 1001000, "10000", "FLT_MAX"],
],
	 "hydros": [
            ["id1:", "id2:"],
            {"beamDeform":30000,"beamStrength":150000},
            {"beamSpring":25500,"beamDamp":250},
            {"beamLimitSpring":0,"beamLimitDamp":0},
            ["hz22","hz3",{"inputSource":"hzcho","inLimit":1.0,"outLimit":0.1,"inRate":0.71,"outRate":10.0,"inputFactor":1}],
            ["hz44","hz1",{"inputSource":"hzcho","inLimit":1.0,"outLimit":0.1,"inRate":0.71,"outRate":10.0,"inputFactor":1}],
            {"beamSpring":10500,"beamDamp":250},
            {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],

},
}
