{
"sprtg_kozyR": {
    "information":{
        "authors":"kws",
        "name":"Sunvisor",
        "value":240,
    },
    "slotType" : "sprtg_kozyR",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["sprtg_kozyR", ["sprtg_kozyR"]],
    ],
		 "triggers2":[
        ["id", "label", "idRef:", "idX:", "idY:", "type", "size", "baseRotation", "rotation", "translation", "baseTranslation"],
      ["openR", "", "ko1","ko2","ko3", "box", {"x":0.03, "y":0.03, "z":0.03}, {"x":0, "y":55, "z":0}, {"x":0, "y":0, "z":0}, {"x":0.18, "y":-0.1, "z":-0.0},{"x":0, "y":0, "z":-0.02}, {"deformGroup":"", "color": [0.388, 0.388, 0.388, 1]}],
	  ],
	  	  		    "triggerEventLinks":[
        ["triggerId:triggers", "action", "targetEventId:events"],
		        ["openR", "action0", "openRR"],
						        ["openR", "action2", "close_kozy_R"],
	],
		   "events":[
        ["id", "title", "desc"],
		["openRR", "openRR.title", "openRR.description", {"onChange":"custom_input.open_kozy_R(VALUE)"}],
		["close_kozy_R", "close_kozy_R.title", "close_kozy_R.description", {"onChange":"custom_input.close_kozy_R(VALUE)"}],

						],
	  	"nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"collision":true},
         {"selfCollision":true},
         //scope
         {"nodeWeight":0.7},
         {"group":"sprtg_kozyR"},
         ["ko1", 0.3109, -0.0606, 1.4507],
         ["ko2", 0.5335, -0.2137, 1.4079],
         ["ko3", 0.1534, -0.2321, 1.4127],
		 
		 
		        
         //rigidifier
       //  ["ko7", 0.3034, -0.3316, 1.4443, {"selfCollision":false}],
         {"group":""},
		          {"collision":false},
				    ["ko9", 0.5343, -0.5232, 1.2234],
         ["ko8", 0.1068, -0.5258, 1.2215],
    ],
    "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},
		   ["ko2", "ko3"],
            ["ko3", "ko1"],
            ["ko1", "ko4"],
            ["ko4", "ko2"],

          {"beamDeform":4500,"beamStrength":"FLT_MAX"},
          //vert
          ["ko4","ko2"],

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

		   ["ko4", "ko1"],
		   ["ko2", "ko1"],
		   ["ko3", "ko4"],



          //rigidifier
          {"beamDeform":6682.5,"beamStrength":175000},
          ["ko1","ko7"],

          ["ko2","ko7"],
		   ["ko4", "ko7"],
            ["ko3", "ko7"],

          //attach
          {"disableTriangleBreaking":true},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamDeform":450500,"beamStrength":1650},
          {"beamSpring":781000,"beamDamp":90},

            ["ko3", "rf1l"],
           ["ko3", "wi1"],
            ["ko3", "rf1"],
            ["ko3", "p2l"],
            ["ko2", "rf1l"],
           ["ko2", "wi1"],
            ["ko2", "p2l"],




          //support beams
          {"beamType":"|NORMAL", "beamLongBound":8},
          {"beamSpring":830830,"beamDamp":100.8},
          {"beamDeform":99225,"beamStrength":630000},
          //hood
          {"optional":true},
          //["ko1","wi1"],
         //["ko1r","p11l"],
          //["ko1l","p10l"],
                  ["ko8", "rf1l"],
            ["ko8", "rf1"],
            ["ko8", "wi1"],
			            ["ko8", "rf2"],
            ["ko9", "rf1l"],
            ["ko9", "rf1"],
            ["ko9", "wi1"],
			            ["ko9", "rf2"],

          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
        ["ko8","ko9"],

    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            {"group":"sprtg_kozyR"},
            {"koroundModel":"plastic"},
            {"dragCoef":8},
            ["ko2", "ko3", "ko1"],
            ["ko2", "ko1", "ko4"],
            {"group":""},
            //gap
            {"dragCoef":0},
            //{"optional":true}
            //{"breakGroup":["scope_body","hood_body"]}
            //["p11l","ko1r","ko1"],
            //["p11l","ko1","wi1"],
            //["p10l","ko1","ko1l"],
            //["wi1","ko1","p10l"],
            //{"optional":false}
            {"breakGroup":""},
    ],
	        "hydros": [
            ["id1:", "id2:"],
            {"beamType":"|HYDRO"},
            {"beamDeform":500,"beamStrength":55550},
            {"beamSpring":111000,"beamDamp":940},
            {"beamPrecompression":1.0},
            ["ko1","ko8",{"inputSource":"openR","inLimit":0.518,"outLimit":0.518,"inRate":1,"outRate":1}],
            {"beamSpring":10500,"beamDamp":250},
            {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
},
"sprtg_kozyL": {
    "information":{
        "authors":"kws",
        "name":"Sunvisor",
        "value":240,
    },
    "slotType" : "sprtg_kozyL",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["sprtg_kozyL", ["sprtg_kozyL"]],
    ],
		 "triggers2":[
        ["id", "label", "idRef:", "idX:", "idY:", "type", "size", "baseRotation", "rotation", "translation", "baseTranslation"],
      ["openL", "", "kol1","kol3","kol2", "box", {"x":0.03, "y":0.03, "z":0.03}, {"x":0, "y":-0, "z":0}, {"x":0, "y":-45, "z":0}, {"x":0.1, "y":-0.05, "z":-0.02},{"x":0, "y":0, "z":-0.0}, {"deformGroup":"", "color": [0.388, 0.388, 0.388, 1]}],
	  ],
	  	  		    "triggerEventLinks":[
        ["triggerId:triggers", "action", "targetEventId:events"],
		        ["openL", "action0", "openLL"],
						        ["openL", "action2", "close_kozy_L"],
								],
		   "events":[
        ["id", "title", "desc"],
		["openLL", "openLL.title", "openLL.description", {"onChange":"custom_input.open_kozy_L(VALUE)"}],
		["close_kozy_L", "close_kozy_L.title", "close_kozy_L.description", {"onChange":"custom_input.close_kozy_L(VALUE)"}],
						],
	  	"nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"collision":true},
         {"selfCollision":true},
         //scope
         {"nodeWeight":0.7},
         {"group":"sprtg_kozyL"},
         ["kol1", -0.3091, -0.0606, 1.4507],
         ["kol2", -0.532, -0.2137, 1.4079],
         ["kol3", -0.1516, -0.2321, 1.4127],
		 
		 
		        
         //rigidifier
       //  ["kol7", -0.3034, -0.3316, 1.4443, {"selfCollision":false}],
         {"group":""},
		          {"collision":false},
				    ["kol9", -0.5327, -0.5232, 1.2234],
         ["kol8", -0.0862, -0.5258, 1.2215],
    ],
    "beams": [
          ["id1:", "id2:"],
          {"breakGroupType":0},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamDeform":555,"beamStrength":175000},
          {"beamSpring":881000,"beamDamp":10},
          {"deformationTriggerRatio":0.03},
          //main shape
          {"deformLimitExpansion":1.1},
		   ["kol2", "kol3"],
            ["kol3", "kol1"],
            ["kol1", "kol4"],
            ["kol4", "kol2"],

          {"beamDeform":4500,"beamStrength":"FLT_MAX"},
          //vert
          ["kol4","kol2"],

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

		   ["kol4", "kol1"],
		   ["kol2", "kol1"],
		   ["kol3", "kol4"],



          //rigidifier
          {"beamDeform":6682.5,"beamStrength":175000},
          ["kol1","kol7"],

          ["kol2","kol7"],
		   ["kol4", "kol7"],
            ["kol3", "kol7"],


          //attach
          {"disableTriangleBreaking":true},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamDeform":450500,"beamStrength":1650},
          {"beamSpring":781000,"beamDamp":90},

            ["kol3", "rf1r"],
           ["kol3", "wi1"],
            ["kol3", "rf1"],
            ["kol3", "p2r"],
            ["kol2", "rf1r"],
           ["kol2", "wi1"],
            ["kol2", "p2r"],



          //support beams
          {"beamType":"|NORMAL", "beamLongBound":8},
          {"beamSpring":830830,"beamDamp":100.8},
          {"beamDeform":99225,"beamStrength":630000},
          //hood
          {"optional":true},
          //["kol1","wi1"],
         //["kol1r","p11r"],
          //["kol1l","p10r"],
          

            ["kol8", "rf1r"],
            ["kol8", "rf1"],
            ["kol8", "wi1"],
			            ["kol8", "rf2"],
            ["kol9", "rf1r"],
            ["kol9", "rf1"],
            ["kol9", "wi1"],
			            ["kol9", "rf2"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
        ["kol8","kol9"],

    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            {"group":"sprtg_kozyL"},
            {"kolroundModel":"plastic"},
            {"dragCoef":8},
            ["kol3", "kol2", "kol1"],
            ["kol2", "kol4", "kol1"],
            {"group":""},
            //gap
            {"dragCoef":0},
            {"breakGroup":""},
    ],
	        "hydros": [
            ["id1:", "id2:"],
            {"beamType":"|HYDRO"},
            {"beamDeform":500,"beamStrength":55550},
            {"beamSpring":111000,"beamDamp":940},
            {"beamPrecompression":1.0},
            ["kol1","kol8",{"inputSource":"openL","inLimit":0.54,"outLimit":0.54,"inRate":1,"outRate":1}],
            {"beamSpring":10500,"beamDamp":250},
            {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
		},
}
