﻿{
	"definitions": [//Dyes: Black=0 Red =1 Green=2 Brown=3 Blue=4 Purple=5 UNU=6 Silver=7 Grey=8 Pink=9 Lime=10 Yellow=11 Light Blue=12 Magenta=13 Orange=14 White=15
		{
			"name": "§3UNU Camel Tandem Axle",
			"subName": "",
			"extraMaterialLists": [[],[]]
			//"extraMaterialLists": [[],[]]
		}
	],

	"general": {
		"description": "Vehicle: UNU Camel\nPart Slot: Back Suspension",
		"stackSize": 1,
		//"materialLists": [["mts:unuparts.unuparts_crafting_unu_assembled_springs_leaf:0:2", "mts:unuparts.unuparts_crafting_unu_cast_brakes_drum:0:2", "mts:unuparts.unuparts_crafting_unu_cast_hubs_truck:0:2", "immersiveengineering:material:2:4"],["mts:unuparts.unuparts_crafting_unu_assembled_springs_leaf:2", "mts:unuparts.unuparts_crafting_unu_cast_brakes_drum:2", "mts:unuparts.unuparts_crafting_unu_cast_hubs_truck:2", "immersiveengineering:stick_steel:4"]]
		"materialLists": [["mts:unuparts.unuparts_crafting_unu_assembled_springs_leaf:0:2", "mts:unuparts.unuparts_crafting_unu_cast_brakes_drum:0:2", "mts:unuparts.unuparts_crafting_unu_cast_hubs_truck:0:2", "minecraft:iron_ingot:0:4"],["mts:unuparts.unuparts_crafting_unu_assembled_springs_leaf:2", "mts:unuparts.unuparts_crafting_unu_cast_brakes_drum:2", "mts:unuparts.unuparts_crafting_unu_cast_hubs_truck:2", "minecraft:iron_ingot:4"]]
	},	
	
	"generic": {
		"type": "generic_bodypart_unu_suspension_camel_back",
		"useVehicleTexture": true,
		"mustBeRemovedByScrewdriver": true,
		"width": 0.25,
		"height": 0.25
	},
	
	"subParts": [
		{
			"pos": [1.03125, 0, 0],
			"rot": [0, 0, 0],
			"types": ["ground_wheel_budd"],
			"defaultPart": "unuparts:unuparts_part_unu_wheel_truck_budd",
			"toneIndex": 1,
			"minValue": 0.625,
			"maxValue": 1.25,
			"interactableVariables": [["!part_present_2"]],
			"applyAfter": "$Axle2"
		},
				{
					"pos": [1.28125, 0, 0],
					"rot": [0, 180, 0],
					"isMirrored": true,
					"types": ["ground_wheel_budd"],
					"defaultPart": "unuparts:unuparts_part_unu_wheel_truck_budd",
					"toneIndex": 1,
					"inverseMirroring": true,
					"minValue": 0.625,
					"maxValue": 1.25,
					"interactableVariables": [["part_present_1"]],
					"applyAfter": "$Axle2"
				},
		{
			"pos": [1.03125, 0, -1.3125],
			"rot": [0, 0, 0],
			"types": ["ground_wheel_budd"],
			"defaultPart": "unuparts:unuparts_part_unu_wheel_truck_budd",
			"toneIndex": 1,
			"minValue": 0.625,
			"maxValue": 1.25,
			"interactableVariables": [["!part_present_4"]],
			"applyAfter": "$Axle3"
		},
				{
					"pos": [1.28125, 0, -1.3125],
					"rot": [0, 180, 0],
					"isMirrored": true,
					"types": ["ground_wheel_budd"],
					"defaultPart": "unuparts:unuparts_part_unu_wheel_truck_budd",
					"toneIndex": 1,
					"inverseMirroring": true,
					"minValue": 0.625,
					"maxValue": 1.25,
					"interactableVariables": [["part_present_3"]],
					"applyAfter": "$Axle3"
				},
		{
			"pos": [-1.03125, 0, -1.3125],
			"rot": [0, 180, 0],
			"isMirrored": true,
			"types": ["ground_wheel_budd"],
			"defaultPart": "unuparts:unuparts_part_unu_wheel_truck_budd",
			"toneIndex": 1,
			"minValue": 0.625,
			"maxValue": 1.25,
			"interactableVariables": [["!part_present_6"]],
			"applyAfter": "$Axle3"
		},
				{
					"pos": [-1.28125, 0, -1.3125],
					"rot": [0, 0, 0],
					"types": ["ground_wheel_budd"],
					"defaultPart": "unuparts:unuparts_part_unu_wheel_truck_budd",
					"toneIndex": 1,
					"inverseMirroring": true,
					"minValue": 0.625,
					"maxValue": 1.25,
					"interactableVariables": [["part_present_5"]],
					"applyAfter": "$Axle3"
				},
		{
			"pos": [-1.03125, 0, 0],
			"rot": [0, 180, 0],
			"isMirrored": true,
			"types": ["ground_wheel_budd"],
			"defaultPart": "unuparts:unuparts_part_unu_wheel_truck_budd",
			"toneIndex": 1,
			"minValue": 0.625,
			"maxValue": 1.25,
			"interactableVariables": [["!part_present_8"]],
			"applyAfter": "$Axle2"
		},
				{
					"pos": [-1.28125, 0, 0],
					"rot": [0, 0, 0],
					"types": ["ground_wheel_budd"],
					"defaultPart": "unuparts:unuparts_part_unu_wheel_truck_budd",
					"toneIndex": 1,
					"inverseMirroring": true,
					"minValue": 0.625,
					"maxValue": 1.25,
					"interactableVariables": [["part_present_7"]],
					"applyAfter": "$Axle2"
				}
	],
	
	"collisionGroups": [
		{
			"collisions": [
				{	//Wheel 1
					"pos": [1.03125, -0.125, 0],
					"width": 0.125,
					"height": 0.125
				}
			],
			"animations": [
				{
					"animationType": "visibility",
					"variable": "part_present_1",
					"clampMin": 0,
					"clampMax": 0
				}
			]
		},
		{
			"collisions": [
				{	//Wheel 2
					"pos": [-1.03125, -0.125, 0],
					"width": 0.125,
					"height": 0.125
				}
			],
			"animations": [
				{
					"animationType": "visibility",
					"variable": "part_present_7",
					"clampMin": 0,
					"clampMax": 0
				}
			]
		}
	],

	"rendering": {
		"animatedObjects": [
			{
				"objectName": "$SuspensionBack",
				"animations": []
			},
			{
				"objectName": "$DriveShaft",
				"applyAfter": "$SuspensionBack",
				"animations": [
					{
						"animationType" : "scaling",
						"variable" : "parent_FrameBed_Front_stretch",
						"centerPoint": [0, 0.3125, 3.25],
						"axis" : [0, 0, 0.3137],
						"offset": 1
					},
					{
						"animationType" : "rotation",
						"variable" : "parent_FrameBed_Front_stretch",
						"centerPoint": [0, 0.3125, 3.25],
						"axis" : [1, 0, 0],
						"offset": -2.5
					},
					{
						"animationType": "rotation",
						"centerPoint": [0, 0.125, 3.5],
						"axis": [0.5112, 0, 0],
						"variable": "Wheel_RightBack"
					},
					{
						"animationType": "rotation",
						"centerPoint": [0, 0.125, 3.5],
						"axis": [0.5112, 0, 0],
						"variable": "Wheel_LeftBack"
					},
					{
						"animationType": "rotation",
						"centerPoint": [0, 0.125, 3.5],
						"axis": [0, 0, -4],
						"variable": "parent_engine_driveshaft_rotation_1"
					}
				]
			},
			{
				"objectName": "$DriveShaft2",
				"applyAfter": "$Axle2",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [0, 0, 0],
						"axis": [-1.5064, 0, 0],
						"variable": "Wheel_RightBack"
					},
					{
						"animationType": "rotation",
						"centerPoint": [0, 0, 0],
						"axis": [-1.5064, 0, 0],
						"variable": "Wheel_LeftBack"
					},
					{
						"animationType": "rotation",
						"centerPoint": [0, 0, -1.1875],
						"axis": [1.5064, 0, 0],
						"variable": "Wheel_RightBackBack"
					},
					{
						"animationType": "rotation",
						"centerPoint": [0, 0, -1.1875],
						"axis": [1.5064, 0, 0],
						"variable": "Wheel_LeftBackBack"
					},
					{
						"animationType": "rotation",
						"centerPoint": [0, 0, -1.1875],
						"axis": [0, 0, 4],
						"variable": "parent_engine_driveshaft_rotation_1"
					}
				]
			},
			{
				"objectName": "$Axle2_LeafSpring1",
				"animations": [
					{
						"animationType" : "rotation",
						"variable" : "Wheel_LeftBack",
						"centerPoint" : [0.6875, 0.25, -0.625],
						"axis" : [-4.1716, 0, 0]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_RightBack",
						"centerPoint" : [0.6875, 0.25, -0.625],
						"axis" : [-1.0822, 0, 0]
					}
				]
			},
			{
				"objectName": "$Axle2_LeafSpring2",
				"animations": [
					{
						"animationType" : "rotation",
						"variable" : "Wheel_RightBack",
						"centerPoint" : [-0.6875, 0.25, -0.625],
						"axis" : [-4.1716, 0, 0]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_LeftBack",
						"centerPoint" : [-0.6875, 0.25, -0.625],
						"axis" : [-1.0822, 0, 0]
					}
				]
			},
			{
				"objectName": "$Axle2_LeafSpring3",
				"animations": [
					{
						"animationType" : "rotation",
						"variable" : "Wheel_RightBack",
						"centerPoint" : [-0.6875, 0.25, 0.625],
						"axis" : [4.1716, 0, 0]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_LeftBack",
						"centerPoint" : [-0.6875, 0.25, 0.625],
						"axis" : [1.0822, 0, 0]
					}
				]
			},
			{
				"objectName": "$Axle2_LeafSpring4",
				"animations": [
					{
						"animationType" : "rotation",
						"variable" : "Wheel_LeftBack",
						"centerPoint" : [0.6875, 0.25, 0.625],
						"axis" : [4.1716, 0, 0]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_RightBack",
						"centerPoint" : [0.6875, 0.25, 0.625],
						"axis" : [1.0822, 0, 0]
					}
				]
			},
			{
				"objectName": "$Axle2_LeafSpringMountL",
				"animations": [
					{
						"animationType" : "translation",
						"variable" : "Wheel_LeftBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0.0498, 0]
					},
					{
						"animationType" : "translation",
						"variable" : "Wheel_RightBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0.0127, 0]
					}
				]
			},
			{
				"objectName": "$Axle2_LeafSpringMountR",
				"animations": [
					{
						"animationType" : "translation",
						"variable" : "Wheel_RightBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0.0498, 0]
					},
					{
						"animationType" : "translation",
						"variable" : "Wheel_LeftBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0.0127, 0]
					}
				]
			},
			{
				"objectName": "$Axle2",
				"animations": [
					{
						"animationType" : "translation",
						"variable" : "Wheel_RightBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0.03125, 0]
					},
					{
						"animationType" : "translation",
						"variable" : "Wheel_LeftBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0.03125, 0]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_RightBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0, -1.5482]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_LeftBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0, 1.5482]
					}
				]
			},
			{
				"objectName": "$Axle3_LeafSpring1",
				"animations": [
					{
						"animationType" : "rotation",
						"variable" : "Wheel_LeftBackBack",
						"centerPoint" : [0.6875, 0.25, -1.9375],
						"axis" : [-4.1716, 0, 0]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_RightBackBack",
						"centerPoint" : [0.6875, 0.25, -1.9375],
						"axis" : [-1.0822, 0, 0]
					}
				]
			},
			{
				"objectName": "$Axle3_LeafSpring2",
				"animations": [
					{
						"animationType" : "rotation",
						"variable" : "Wheel_RightBackBack",
						"centerPoint" : [-0.6875, 0.25, -1.9375],
						"axis" : [-4.1716, 0, 0]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_LeftBackBack",
						"centerPoint" : [-0.6875, 0.25, -1.9375],
						"axis" : [-1.0822, 0, 0]
					}
				]
			},
			{
				"objectName": "$Axle3_LeafSpring3",
				"animations": [
					{
						"animationType" : "rotation",
						"variable" : "Wheel_RightBackBack",
						"centerPoint" : [-0.6875, 0.25, -0.6875],
						"axis" : [4.1716, 0, 0]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_LeftBackBack",
						"centerPoint" : [-0.6875, 0.25, -0.6875],
						"axis" : [1.0822, 0, 0]
					}
				]
			},
			{
				"objectName": "$Axle3_LeafSpring4",
				"animations": [
					{
						"animationType" : "rotation",
						"variable" : "Wheel_LeftBackBack",
						"centerPoint" : [0.6875, 0.25, -0.6875],
						"axis" : [4.1716, 0, 0]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_RightBackBack",
						"centerPoint" : [0.6875, 0.25, -0.6875],
						"axis" : [1.0822, 0, 0]
					}
				]
			},
			{
				"objectName": "$Axle3_LeafSpringMountL",
				"animations": [
					{
						"animationType" : "translation",
						"variable" : "Wheel_LeftBackBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0.0498, 0]
					},
					{
						"animationType" : "translation",
						"variable" : "Wheel_RightBackBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0.0127, 0]
					}
				]
			},
			{
				"objectName": "$Axle3_LeafSpringMountR",
				"animations": [
					{
						"animationType" : "translation",
						"variable" : "Wheel_RightBackBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0.0498, 0]
					},
					{
						"animationType" : "translation",
						"variable" : "Wheel_LeftBackBack",
						"centerPoint" : [0, 0, 0],
						"axis" : [0, 0.0127, 0]
					}
				]
			},
			{
				"objectName": "$Axle3",
				"animations": [
					{
						"animationType" : "translation",
						"variable" : "Wheel_RightBackBack",
						"centerPoint" : [0, 0, -1.3125],
						"axis" : [0, 0.03125, 0]
					},
					{
						"animationType" : "translation",
						"variable" : "Wheel_LeftBackBack",
						"centerPoint" : [0, 0, -1.3125],
						"axis" : [0, 0.03125, 0]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_RightBackBack",
						"centerPoint" : [0, 0, -1.3125],
						"axis" : [0, 0, -1.5482]
					},
					{
						"animationType" : "rotation",
						"variable" : "Wheel_LeftBackBack",
						"centerPoint" : [0, 0, -1.3125],
						"axis" : [0, 0, 1.5482]
					}
				]
			},
			{
				"objectName": "$LeftBackWheel",
				"applyAfter": "$Axle2",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [1.03125, 0, 0],
						"axis": [1, 0, 0],
						"variable": "ground_rotation_1"
					}
				]
			},
			{
				"objectName": "$LeftBackBackWheel",
				"applyAfter": "$Axle3",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [1.03125, 0, -1.3125],
						"axis": [1, 0, 0],
						"variable": "ground_rotation_3"
					}
				]
			},
			{
				"objectName": "$RightBackBackWheel",
				"applyAfter": "$Axle3",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [-1.03125, 0, -1.3125],
						"axis": [-1, 0, 0],
						"variable": "ground_rotation_5"
					}
				]
			},
			{
				"objectName": "$RightBackWheel",
				"applyAfter": "$Axle2",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [-1.03125, 0, 0],
						"axis": [-1, 0, 0],
						"variable": "ground_rotation_7"
					}
				]
			}
		]
	},
	
	"constantValues": {
		"unuisbest": 1
	},
		
	"variableModifiers": [
		{
			"variable": "Wheel_LeftBack",
			"animations": [
				{
					"animationType" : "translation",
					"variable" : "ground_onground_1",
					"axis" : [0, 0, 2],
					"offset": -2
				},
				{
					"animationType" : "translation",
					"variable" : "Forces_Roll",
					"axis" : [0, -1, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Forces_Pitch",
					"axis" : [0, 1, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Enable_Suspension",
					"axis" : [1, 0, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Ride_Height_Back",
					"axis" : [0, -1, 0]
				}
			],
			"minValue": -4,
			"maxValue": 2
		},
		{
			"variable": "Wheel_LeftBackBack",
			"animations": [
				{
					"animationType" : "translation",
					"variable" : "ground_onground_3",
					"axis" : [0, 0, 2],
					"offset": -2
				},
				{
					"animationType" : "translation",
					"variable" : "Forces_Roll",
					"axis" : [0, -1, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Forces_Pitch",
					"axis" : [0, 1, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Enable_Suspension",
					"axis" : [1, 0, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Ride_Height_Back",
					"axis" : [0, -1, 0]
				}
			],
			"minValue": -4,
			"maxValue": 2
		},
		{
			"variable": "Wheel_RightBackBack",
			"animations": [
				{
					"animationType" : "translation",
					"variable" : "ground_onground_5",
					"axis" : [0, 0, 2],
					"offset": -2
				},
				{
					"animationType" : "translation",
					"variable" : "Forces_Roll",
					"axis" : [0, 1, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Forces_Pitch",
					"axis" : [0, 1, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Enable_Suspension",
					"axis" : [1, 0, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Ride_Height_Back",
					"axis" : [0, -1, 0]
				}
			],
			"minValue": -4,
			"maxValue": 2
		},
		{
			"variable": "Wheel_RightBack",
			"animations": [
				{
					"animationType" : "translation",
					"variable" : "ground_onground_7",
					"axis" : [0, 0, 2],
					"offset": -2
				},
				{
					"animationType" : "translation",
					"variable" : "Forces_Roll",
					"axis" : [0, 1, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Forces_Pitch",
					"axis" : [0, 1, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Enable_Suspension",
					"axis" : [1, 0, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Ride_Height_Back",
					"axis" : [0, -1, 0]
				}
			],
			"minValue": -4,
			"maxValue": 2
		},
		{
			"variable": "Wheel_RightFront",
			"animations": [
				{
					"animationType" : "translation",
					"variable" : "ground_onground_9",
					"axis" : [0, 0, 2],
					"offset": -2
				},
				{
					"animationType" : "translation",
					"variable" : "Forces_Roll",
					"axis" : [0, 1, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Forces_Pitch",
					"axis" : [0, -1, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Enable_Suspension",
					"axis" : [1, 0, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "Ride_Height_Front",
					"axis" : [0, -1, 0]
				}
			],
			"minValue": -4,
			"maxValue": 2
		}
	]
}
