{
"BB_RockBouncer_steeringV2_R": {
    "information":{
        "authors":"BeamNG",
        "name":"Hydraulic Steering",
        "value":1400,
    },
    "slotType" : "BB_RockBouncer_steeringV2_R",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["BB_RockBouncer_LinesR", ["BB_RockBouncer_axle_R"]],
        ["", ["BB_RockBouncer_axle_R"]],
        ["", ["BB_RockBouncer_Hydros_Rear"]],
        ["", ["BB_RockBouncer_Hub_RL", "BB_RockBouncer_Hub_RR"]],
        ["BB_RockBouncer_Shafts_RL", ["BB_RockBouncer_TierodR", "BB_RockBouncer_Hydros_Rear"]],
        ["BB_RockBouncer_Shafts_RR", ["BB_RockBouncer_TierodR", "BB_RockBouncer_Hydros_Rear"]],
        ["", ["BB_RockBouncer_Hub_RL", "BB_RockBouncer_Hub_RR"]],
    ],
    "slots": [
        ["type", "default", "description"],	
        ["BB_RockBouncer_Hydros_R","BB_RockBouncer_Hydros_R","Hydraulic Cylinders", {"coreSlot":true}],						
        ["BB_RockBouncer_KnucklesR","BB_RockBouncer_KnucklesR","Hub Housings", {"coreSlot":true}],						
        ["BB_RockBouncer_Tierod_R","BB_RockBouncer_Tierod_R","Tierod", {"coreSlot":true}],						
    ],		
    //steering rack rail
    "rails": {
        "steeringrack_mainR":{"links:":["BBAxleTechHydroRR", "BBAxleTechHydroRL"], "broken:":[], "looped":false, "capped":true},
        "steeringrack_extraR":{"links:":["BBAxleTechHydroRR2", "BBAxleTechHydroRL2"], "broken:":[], "looped":false, "capped":true},
    },
    "slidenodes": [
        ["id:", "railName", "attached", "fixToRail", "tolerance", "spring", "strength", "capStrength"],
        ["BBAxleHydroRR", "steeringrack_mainR", true, true, 0.0, 20001000, "FLT_MAX", "FLT_MAX"],
        ["BBAxleHydroRL", "steeringrack_mainR", true, true, 0.0, 20001000, "FLT_MAX", "FLT_MAX"],
        ["BBAxleHydroRR2", "steeringrack_extraR", true, true, 0.0, 1001000, "FLT_MAX", "FLT_MAX"],
        ["BBAxleHydroRL2", "steeringrack_extraR", true, true, 0.0, 1001000, "FLT_MAX", "FLT_MAX"],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$desert_toe_R", "range", "", "Wheel Alignment", 0.999, 1.02, 0.98, "Toe Adjust", "Adjusts the wheel toe-in angle", {"subCategory":"Rear"}],
        ["$desert_steer_center_R", "range", "", "Wheel Alignment", 0, -0.001, 0.001, "Toe Left/Right Trim", "Fine tunes the centerpoint of the steering", {"subCategory":"Rear"}]
    ],
    "nodes": [
        ["id", "posX", "posY", "posZ"],
        {"selfCollision":false},
        {"collision":true},
        {"nodeMaterial":"|NM_METAL"},
        {"frictionCoef":0.5},
        {"nodeWeight":14},
        //steering rack ends
        {"group":["BB_RockBouncer_Hydros_Rear"]},
            ["BBAxleHydroRL", 0.16451, 1.22235, -0.07443],
            ["BBAxleHydroRR", -0.16451, 1.22235, -0.07443],
            ["BBAxleHydroRL2", 0.16451, 1.22235, -0.17731],
            ["BBAxleHydroRR2", -0.16451, 1.22235, -0.17731],
        //axle mounting points for steering rack
        {"nodeWeight":14.0},
        {"group":["BB_RockBouncer_steeringrackR","BB_RockBouncer_tierod_RR"]},
            ["BBAxleTechHydroRR", -0.48041, 1.22235, -0.07443],
            ["BBAxleTechHydroRR2", -0.48041, 1.22235, -0.17731],
        {"group":["BB_RockBouncer_steeringrackR","BB_RockBouncer_tierod_RL"]},
            ["BBAxleTechHydroRL", 0.48041, 1.22235, -0.07443],
            ["BBAxleTechHydroRL2", 0.48041, 1.22235, -0.17731],
        {"group":""},
    ],
    "beams": [
        ["id1:","id2:"],
        {"beamPrecompression":1.0, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
        {"beamSpring":6901000,"beamDamp":100},
        {"beamDeform":101000,"beamStrength":"FLT_MAX"},
        //steering rack mounting to axle
        {"deformLimitExpansion":1.2},
        {"group":["BB_RockBouncer_TierodR"]},		
            ["BBAxleHydroRR", "BBAxleTechR66"],
            ["BBAxleTechR66", "BBAxleHydroRR2"],
            ["BBAxleHydroRR2", "BBAxleTechR63"],
            ["BBAxleTechR63", "BBAxleHydroRR"],
            ["BBAxleHydroRR", "BBAxleTechR64"],
            ["BBAxleTechR64", "BBAxleHydroRR2"],
            ["BBAxleHydroRR2", "BBAxleTechR65"],
            ["BBAxleTechR65", "BBAxleHydroRR"],
            ["BBAxleHydroRL", "BBAxleTechR31"],
            ["BBAxleTechR31", "BBAxleHydroRL2"],
            ["BBAxleHydroRL2", "BBAxleTechR28"],
            ["BBAxleTechR28", "BBAxleHydroRL"],
            ["BBAxleHydroRL", "BBAxleTechR29"],
            ["BBAxleTechR29", "BBAxleHydroRL2"],
            ["BBAxleHydroRL2", "BBAxleTechR30"],
            ["BBAxleTechR30", "BBAxleHydroRL"],
            ["BBAxleHydroRL", "BBAxleTechR26"],
            ["BBAxleTechR26", "BBAxleHydroRL2"],
            ["BBAxleHydroRL2", "BBAxleTechR27"],
            ["BBAxleTechR27", "BBAxleHydroRL"],
            ["BBAxleHydroRR", "BBAxleTechR61"],
            ["BBAxleTechR61", "BBAxleHydroRR2"],
            ["BBAxleHydroRR2", "BBAxleTechR62"],
            ["BBAxleTechR62", "BBAxleHydroRR"],
            ["BBAxleHydroRR", "BBDiffRR"],
            ["BBDiffRR", "BBAxleHydroRR2"],
            ["BBAxleHydroRL", "BBDiffRL"],
            ["BBDiffRL", "BBAxleHydroRL2"],
            ["BBAxleHydroRR2", "BBAxleTechR28"],
            ["BBAxleTechR28", "BBAxleHydroRR"],
            ["BBAxleHydroRL", "BBAxleTechR63"],
            ["BBAxleTechR63", "BBAxleHydroRL2"],


        {"beamSpring":501000,"beamDamp":100},
        //rack extra flexbody helpers

            ["BBAxleHydroRL", "BBAxleHydroRL2"],
            ["BBAxleHydroRR", "BBAxleHydroRR2"],

            ["BBAxleTechHydroRL", "BBAxleTechHydroRL2"],
            ["BBAxleTechHydroRR", "BBAxleTechHydroRR2"],

        {"deformLimitExpansion":""},

        //center link
        {"beamDeform":250000,"beamStrength":2450000},
        {"beamSpring":10001000,"beamDamp":150},
        {"group":["BB_RockBouncer_Hydros_Rear"]},	
            ["BBAxleHydroRR", "BBAxleHydroRL"],
            ["BBAxleHydroRL", "BBAxleHydroRR2"],
            ["BBAxleHydroRR2", "BBAxleHydroRL2"],
            ["BBAxleHydroRL2", "BBAxleHydroRR"],


        //tie rod ends
        {"beamSpring":20001000,"beamDamp":150},
            ["BBAxleTechHydroRL", "BBAxleTechSteerRL1", {"beamPrecompression":"$=$desert_toe_R-$desert_steer_center_R","beamPrecompressionTime":0.5}],
            ["BBAxleTechHydroRL2", "BBAxleTechSteerRL2", {"beamPrecompression":"$=$desert_toe_R-$desert_steer_center_R","beamPrecompressionTime":0.5}],
            ["BBAxleTechHydroRL", "BBAxleTechSteerRL2", {"beamPrecompression":"$=$desert_toe_R-$desert_steer_center_R","beamPrecompressionTime":0.5}],
            ["BBAxleTechHydroRL2", "BBAxleTechSteerRL1", {"beamPrecompression":"$=$desert_toe_R-$desert_steer_center_R","beamPrecompressionTime":0.5}],
            ["BBAxleTechHydroRR", "BBAxleTechSteerRR1", {"beamPrecompression":"$=$desert_toe_R-$desert_steer_center_R","beamPrecompressionTime":0.5}],
            ["BBAxleTechHydroRR2", "BBAxleTechSteerRR1", {"beamPrecompression":"$=$desert_toe_R-$desert_steer_center_R","beamPrecompressionTime":0.5}],
            ["BBAxleTechHydroRR", "BBAxleTechSteerRR2", {"beamPrecompression":"$=$desert_toe_R-$desert_steer_center_R","beamPrecompressionTime":0.5}],
            ["BBAxleTechHydroRR2", "BBAxleTechSteerRR2", {"beamPrecompression":"$=$desert_toe_R-$desert_steer_center_R","beamPrecompressionTime":0.5}],

        //steering damper
        {"beamSpring":0,"beamDeform":"FLT_MAX","beamStrength":"FLT_MAX"},
        {"beamLimitSpring":0,"beamLimitDamp":0},
        {"beamPrecompression":1.0, "beamType":"|BOUNDED", "beamLongBound":1.0, "beamShortBound":1.0},
        {"beamDamp":250},
            ["BBAxleTechSteerRR6", "BBAxleTechR57"],
            ["BBAxleTechR58", "BBAxleTechSteerRR6"],
            ["BBAxleTechSteerRR6", "BBAxleTechR59"],
            ["BBAxleTechR60", "BBAxleTechSteerRR6"],
            ["BBAxleTechSteerRR1", "BBAxleTechR60"],
            ["BBAxleTechR60", "BBAxleTechSteerRR2"],
            ["BBAxleTechSteerRR2", "BBAxleTechR59"],
            ["BBAxleTechR59", "BBAxleTechSteerRR1"],
            ["BBAxleTechSteerRR1", "BBAxleTechR58"],
            ["BBAxleTechR58", "BBAxleTechSteerRR2"],
            ["BBAxleTechSteerRR2", "BBAxleTechR57"],
            ["BBAxleTechR57", "BBAxleTechSteerRR1"],
            ["BBAxleTechSteerRR1", "BBAxleTechSWBRR"],
            ["BBAxleTechSWBRR", "BBAxleTechSteerRR2"],
            ["BBAxleTechSteerRR1", "BBAxleTechR63"],
            ["BBAxleTechR63", "BBAxleTechSteerRR2"],
            ["BBAxleTechSteerRR1", "BBAxleTechR61"],
            ["BBAxleTechSteerRR2", "BBAxleTechR61"],
            ["BBAxleTechSteerRR1", "BBAxleTechR65"],
            ["BBAxleTechR65", "BBAxleTechSteerRR2"],
            ["BBAxleTechSteerRR6", "BBAxleTechR66"],
            ["BBAxleTechSteerRR6", "BBAxleTechR62"],
            ["BBAxleTechSteerRR6", "BBAxleTechR64"],
            ["BBAxleTechSteerRR6", "BBAxleTechR62"],
            ["BBAxleTechSteerRR6", "BBAxleTechR29"],
            ["BBAxleTechSteerRL6", "BBAxleTechR23"],
            ["BBAxleTechR22", "BBAxleTechSteerRL6"],
            ["BBAxleTechSteerRL6", "BBAxleTechR25"],
            ["BBAxleTechR24", "BBAxleTechSteerRL6"],
            ["BBAxleTechSteerRL1", "BBAxleTechR25"],
            ["BBAxleTechR25", "BBAxleTechSteerRL2"],
            ["BBAxleTechSteerRL2", "BBAxleTechR24"],
            ["BBAxleTechR24", "BBAxleTechSteerRL1"],
            ["BBAxleTechSteerRL1", "BBAxleTechR23"],
            ["BBAxleTechR23", "BBAxleTechSteerRL2"],
            ["BBAxleTechSteerRL2", "BBAxleTechR22"],
            ["BBAxleTechR22", "BBAxleTechSteerRL1"],
            ["BBAxleTechSteerRL2", "BBAxleTechSWBRL"],
            ["BBAxleTechSWBRL", "BBAxleTechSteerRL1"],
            ["BBAxleTechSteerRL1", "BBAxleTechR26"],
            ["BBAxleTechR26", "BBAxleTechSteerRL2"],
            ["BBAxleTechSteerRL2", "BBAxleTechR28"],
            ["BBAxleTechR28", "BBAxleTechSteerRL1"],
            ["BBAxleTechSteerRL2", "BBAxleTechSMRL1"],
            ["BBAxleTechSMRL1", "BBAxleTechSteerRL1"],
            ["BBAxleTechSteerRL2", "BBAxleTechR30"],
            ["BBAxleTechR30", "BBAxleTechSteerRL1"],
            ["BBAxleTechHydroRL", "BBAxleTechR25"],
            ["BBAxleTechR25", "BBAxleTechHydroRL2"],
            ["BBAxleTechHydroRL2", "BBAxleTechR24"],
            ["BBAxleTechR24", "BBAxleTechHydroRL"],
            ["BBAxleTechHydroRL", "BBAxleTechR26"],
            ["BBAxleTechHydroRL", "BBAxleTechR28"],
            ["BBAxleTechR28", "BBAxleTechHydroRL2"],
            ["BBAxleTechHydroRL2", "BBAxleTechR30"],
            ["BBAxleTechR65", "BBAxleTechHydroRR2"],
            ["BBAxleTechHydroRR2", "BBAxleTechR63"],
            ["BBAxleTechR63", "BBAxleTechHydroRR"],
            ["BBAxleTechHydroRR", "BBAxleTechR61"],
            ["BBAxleTechHydroRR", "BBAxleTechR60"],
            ["BBAxleTechR60", "BBAxleTechHydroRR2"],
            ["BBAxleTechHydroRR2", "BBAxleTechR59"],
            ["BBAxleTechR59", "BBAxleTechHydroRR"],
            ["BBAxleTechHydroRR", "BBAxleTechR58"],
            ["BBAxleTechHydroRR2", "BBAxleTechR57"],


        {"deformLimitExpansion":1.2},
        {"beamPrecompression":1.0, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
    "hydros": [
        ["id1:","id2:"],
        {"beamPrecompression":1.0, "beamType":"| BOUNDED", "beamLongBound":1, "beamShortBound":1},
        {"beamSpring":20001000,"beamDamp":250,"beamDeform":"FLT_MAX","beamStrength":195000},
        ["BBAxleHydroRL","BBAxleTechHydroRR",{"inputSource":"rear_steering","factor":0.10,"steeringWheelLock":600,"inRate":0.1,"outRate":0.2}],
        ["BBAxleHydroRR","BBAxleTechHydroRL",{"inputSource":"rear_steering","factor":-0.10,"steeringWheelLock":600,"inRate":0.1,"outRate":0.2}],
        ["BBAxleHydroRL2","BBAxleTechHydroRR2",{"inputSource":"rear_steering","factor":0.10,"steeringWheelLock":600,"inRate":0.1,"outRate":0.2}],
        ["BBAxleHydroRR2","BBAxleTechHydroRL2",{"inputSource":"rear_steering","factor":-0.10,"steeringWheelLock":600,"inRate":0.1,"outRate":0.2}],
		
        {"beamPrecompression":1.0, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
    "input": {
        "FFBcoef":"$=$ffbstrength*10",
    },
},

"BBDonRace_Hubs_R": {
    "information":{
        "authors":"BeamNG",
        "name":"Standard Housing (Black)",
        "value":450,
    },
    "slotType" : "BBDonRace_Hubs_R",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["BB_RockBouncer_HubRL", ["BB_RockBouncer_Hub_RL"]],
        ["BB_RockBouncer_HubRR", ["BB_RockBouncer_Hub_RR"]],
    ],
},
}