
{
"man_tgx_cranesupport_f": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Crane Support",
        "value":450,
    },
    "slotType" : "man_tgx_attachment_f",
    "slots": [
        ["type", "default", "description"]
        //["man_tgx_licenseplate_F","man_tgx_licenseplate_F", "Front License Plate"],
        //["man_tgx_fascia_grille","", "Headights Grille"],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
       ["palfinger_support_f_base", ["man_tgx_cranesupport_f"]],
        ["palfinger_support_fl", ["man_tgx_cranesupport_f"]],		
        ["palfinger_support_fr", ["man_tgx_cranesupport_f"]],
        ["palfinger_support_ext_fl", ["man_tgx_cranesupport_f_ext"]],
        ["palfinger_support_ext_fr", ["man_tgx_cranesupport_f_ext"]],
        
        {"deformGroup":""}
    ],
    
    
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":false},
         {"collision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"group":"man_tgx_cranesupport_f"},
         {"nodeWeight":30},

["pfsupf0", 0.00000, -3.22200, 0.89900{"couplerTag":"tow_hitch","couplerStrength":2001000,"couplerRadius":1}],
["pfsupf2", 0.50100, -3.20600, 0.61500],
["pfsupf4", 0.50100, -3.20600, 1.26600],
["pfsupf6", -0.50100, -3.20600, 0.61500],
["pfsupf8", -0.50100, -3.20600, 1.26600],

         {"group":"man_tgx_cranesupport_f_ext"},
["pfsupf1", 0.50100, -3.20600, 0.53600],
["pfsupf3", 0.50100, -3.20600, 1.18700],
["pfsupf5", -0.50100, -3.20600, 0.53600],
["pfsupf7", -0.50100, -3.20600, 1.18700],
         {"group":""},
         {"selfCollision":false},
         {"collision":false},
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //--FRONT BUMPER--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":15001000,"beamDamp":1000},
          {"beamDeform":375000,"beamStrength":"FLT_MAX"},
["pfsupf1","pfsupf7"],
["pfsupf7","pfsupf5"],
["pfsupf5","pfsupf1"],
["pfsupf8","pfsupf6"],
["pfsupf2","pfsupf8"],
["pfsupf8","pfsupf4"],
["pfsupf6","pfsupf2"],
["pfsupf5","pfsupf3"],
["pfsupf7","pfsupf3"],
["pfsupf1","pfsupf3"],
["pfsupf2","pfsupf4"],
["pfsupf6","pfsupf4"],
["pfsupf4","pfsupf0"],
["pfsupf8","pfsupf0"],
["pfsupf6","pfsupf0"],
["pfsupf2","pfsupf0"],

//attach to frame
            ["pfsupf4", "f1l"],
            ["pfsupf4", "f1r"],
            ["pfsupf8", "f1r"],
            ["pfsupf8", "f1l"],
            ["pfsupf2", "f11l"],
            ["pfsupf2", "f11r"],
            ["pfsupf6", "f11r"],
            ["pfsupf6", "f11l"],
            ["f11l", "pfsupf4"],
            ["f1l", "pfsupf2"],
            ["f11r", "pfsupf8"],
            ["f1r", "pfsupf6"],
            ["pfsupf0", "f1"],
            ["pfsupf0", "f11"],

            ["pfsupf2", "f12l"],
            ["pfsupf6", "f12r"],
            ["pfsupf4", "f2l"],
            ["f2r", "pfsupf8"],





          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
	
    "rails": {
          "palfinger_support_fl":{"links:":["pfsupf4", "pfsupf1"], "looped":false, "capped":true}
		  "palfinger_support_fr":{"links:":["pfsupf8", "pfsupf5"], "looped":false, "capped":true}
		  

    },

    "slidenodes": [
         ["id:", "railName", "attached", "fixToRail", "tolerance", "spring", "strength", "capStrength"],

		 ["pfsupf2", "palfinger_support_fl", true, true, 0, 20001000, "FLT_MAX", "FLT_MAX"],
		 ["pfsupf3", "palfinger_support_fl", true, true, 0, 20001000, "FLT_MAX", "FLT_MAX"],

		 ["pfsupf6", "palfinger_support_fr", true, true, 0, 20001000, "FLT_MAX", "FLT_MAX"],
		 ["pfsupf7", "palfinger_support_fr", true, true, 0, 20001000, "FLT_MAX", "FLT_MAX"],
		 
    ],
	
	    "hydros": [
            ["id1:","id2:"],

            {"beamPrecompression":1.0},
            //{"breakGroupType":1},
			          {"beamDeform":"FLT_MAX","beamStrength":"FLT_MAX"},
					  
			["pfsupf4", "pfsupf1",{"inputSource":"push_cranesupport","inLimit":0,"outLimit":1.68,"inRate":0.3,"outRate":0.3,"inputFactor":1.0}],
			["pfsupf8", "pfsupf5",{"inputSource":"push_cranesupport","inLimit":0,"outLimit":1.68,"inRate":0.3,"outRate":0.3,"inputFactor":1.0}],
            {"beamPrecompression":1.0},
            {"breakGroup":""},
    ],

    "triangles": [
            ["id1:","id2:","id3:"],
            {"dragCoef":4},
            {"groundModel":"metal"},
            ["pfsupf8", "pfsupf6", "pfsupf2"],
            ["pfsupf2", "pfsupf4", "pfsupf8"],
            ["pfsupf2", "f11l", "pfsupf4"],
            ["pfsupf4", "f11l", "f1l"],
            ["pfsupf4", "f1l", "f1r"],
            ["f1r", "pfsupf8", "pfsupf4"],
            ["f1l", "f1", "f1r"],
            ["f1r", "f11r", "pfsupf6"],
            ["pfsupf6", "pfsupf8", "f1r"],
            ["f11l", "pfsupf2", "pfsupf6"],
            ["pfsupf6", "f11r", "f11l"],
            ["f11l", "f11", "f11r"],

 
            {"group":""},
    ],
},

}