<TruckAddon
	IsChassisFullOcclusion="true"
	_noinherit="true"
>
	<PhysicsModel Mesh="trucks/kenworth_trailer_mod_loader">
		<Body Mass="1400" ImpactType="Truck">
			<Body Mass="400" ModelFrame="BoneRotationBase_cdt">
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-350"
					MaxLimit="350"
					Name="Crane"
					Type="Hinge"
				>
					<Motor Force="80000" Tau="0.04" Type="Position" />
				</Constraint>
				<Body Mass="300" ModelFrame="BoneArm1_cdt">
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="-20"
						MaxLimit="80"
						Name="Crane"
						Type="Hinge"
					>
						<Motor Force="120000" Tau="0.1" Type="Position" />
					</Constraint>
					<Body Mass="50" ModelFrame="BoneArm1_1_cdt">
						<Constraint
							AxisLocal="(0;1;0)"
							MinLimit="0"
							MaxLimit="0.01"
							Name="Crane"
							Type="Prismatic"
						>
							<Motor Force="120000" Tau="0.1" Type="Position" />
						</Constraint>
						<Body Mass="200" ModelFrame="BoneArm2_cdt">
							<Constraint
								AxisLocal="(0;0;1)"
								MinLimit="0"
								MaxLimit="160"
								Name="Crane"
								Type="Hinge"
							>
								<Motor Force="60000" Tau="0.2" Type="Position" />
							</Constraint>
							<Body Collisions="None" Mass="40" ModelFrame="BoneGrapplerRoot_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-240"
									MaxLimit="10"
									Type="Hinge"
								>
									<Motor Damping="200" Spring="0" Type="Spring" />
								</Constraint>
								<Body Collisions="None" Mass="40" ModelFrame="BoneGrapplerBase_cdt">
									<Constraint
										AxisLocal="(1;0;0)"
										MinLimit="-70"
										MaxLimit="70"
										Type="Hinge"
									>
										<Motor Damping="200" Spring="0" Type="Spring" />
									</Constraint>
									<Body
										Collisions="None"
										ForceBodyParams="true"
										Mass="40"
										ModelFrame="BoneGrappler_cdt"
									>
										<Constraint
											AxisLocal="(0;-1;0)"
											MinLimit="-180"
											MaxLimit="180"
											Name="GrapplerBase"
											Type="Hinge"
										>
											<Motor Force="12000" Tau="0.4" Type="Position" />
										</Constraint>
										<Body
											ModelFrame="BoneGrapplerLeft_cdt"
											Collisions="Internal"
											ForceBodyParams="true"
											Friction="2.0"
											Mass="100"
											NoClientCollisions="true"
										>
											<Constraint
												MinLimit="-50"
												MaxLimit="0"
												Name="LeftGrappler"
												AxisLocal="(1;0;0)"
												Type="Hinge"
											>
												<Motor
													Damping="1.0"
													Force="50000"
													Tau="0.04"
													Type="Position"
												/>
											</Constraint>
										</Body>
										<Body
											ModelFrame="BoneGrapplerRight_cdt"
											Collisions="Internal"
											ForceBodyParams="true"
											Friction="2.0"
											Mass="100"
											NoClientCollisions="true"
										>
											<Constraint
												MinLimit="0"
												MaxLimit="50"
												Name="RightGrappler"
												AxisLocal="(1;0;0)"
												Type="Hinge"
											>
												<Motor
													Damping="1.0"
													Force="50000"
													Tau="0.04"
													Type="Position"
												/>
											</Constraint>
										</Body>
									</Body>
								</Body>
							</Body>
						</Body>
					</Body>
				</Body>
			</Body>
			<Body
				ModelFrame="BoneLeftAnchor_cdt"
				NoFoliageCollisions="true"
				Mass="150"
			>
				<Constraint
					MinLimit="0"
					MaxLimit="180"
					Name="LeftAnchor"
					AxisLocal="(1;0;0)"
					Type="Hinge"
				>
					<Motor Force="12000" Type="Position" />
				</Constraint>
				<Body
					ModelFrame="BoneLeftAnchorFoot_cdt"
					Mass="20"
					ForceBodyParams="true"
					NoFoliageCollisions="true"
				>
					<Constraint
						AxisLocal="(1;0;0)"
						MinLimit="-65"
						MaxLimit="0"
						Type="Hinge"
					>
						<Motor Damping="3" Spring="1" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
			<Body
				ModelFrame="BoneRightAnchor_cdt"
				NoFoliageCollisions="true"
				Mass="150"
			>
				<Constraint
					MinLimit="0"
					MaxLimit="180"
					Name="RightAnchor"
					AxisLocal="(1;0;0)"
					Type="Hinge"
				>
					<Motor Force="12000" Type="Position" />
				</Constraint>
				<Body
					ModelFrame="BoneRightAnchorFoot_cdt"
					Mass="20"
					ForceBodyParams="true"
					NoFoliageCollisions="true"
				>
					<Constraint
						AxisLocal="(1;0;0)"
						MinLimit="-65"
						MaxLimit="0"
						Type="Hinge"
					>
						<Motor Damping="3" Spring="1" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
			<Body Mass="40" ModelFrame="BoneShield_cdt">
				<Constraint
					AxisLocal="(0;0;1)"
					MinLimit="-2"
					MaxLimit="2"
					Type="Hinge"
				>
					<Motor Damping="500" Spring="5" Type="Spring" />
				</Constraint>
			</Body>
			<Constraint Type="Fixed" />
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<Flare
				Pos="(2.16; 1.281; -1.548)"
				ParentFrame="BoneChassis_cdt"
				Color="g(117; 94; 72) x 0.5"
				Size="0.3"
			/>
			<Flare
				Pos="(2.16; 1.281; 1.548)"
				ParentFrame="BoneChassis_cdt"
				Color="g(117; 94; 72) x 0.5"
				Size="0.3"
			/>
			<Flare
				Pos="(-3.054; 1.283; -1.554)"
				ParentFrame="BoneChassis_cdt"
				Color="g(117; 94; 72) x 0.5"
				Size="0.3"
			/>
			<Flare
				Pos="(-3.054; 1.283; 1.554)"
				ParentFrame="BoneChassis_cdt"
				Color="g(117; 94; 72) x 0.5"
				Size="0.3"
			/>
		</Ignition>
	</ModelAttachments>
	<GameData>
		<LoadArea Min="(-2.1; 1.4; -1.193)" Max="(-0.2; 2.8; 1.2)" Type="ShortLogs" />
		<LoadArea Min="(0.1; 1.4; -1.311)" Max="(2; 2.8; 1.2)" Type="ShortLogs" />
		<InstallSocket Type="T800TrailerModLoader" />
	</GameData>
	<ControlledIK>
		<Chain
			CenterXZ="(-3.68; 0)"
			EndOffset="(2.896; 0.064; 0)"
			Id="crane"
			MinRadius="1.0"
			ModelFrames="BoneCart_cdt,BoneRotationBase_cdt,BoneArm1_cdt,BoneArm1_1_cdt,BoneArm2_cdt"
			VerticalLineFrame="BoneGrappler_cdt"
		/>
	</ControlledIK>
	<PoweredConstraints>
		<Group Id="crane_grab" IsGamepadHotkey="true">
			<Constraint Name="RightGrappler" Position="50" SpeedMult="2" />
			<Constraint Name="LeftGrappler" Position="-50" SpeedMult="2" />
		</Group>
		<Group Id="anchors_position">
			<Constraint Name="RightAnchor" Position="160" TerminalFix="true" />
			<Constraint Name="LeftAnchor" Position="160" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<ControlledConstraints>
		<Constraint Id="crane_grappler" LinkToControlledIK="crane" Name="GrapplerBase" />
	</ControlledConstraints>
	<AutomaticIK>
		<IKBone ModelFrame="BoneBasePistonBase" ParentFrame="BoneRotationBase_cdt">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneArm1_cdt"
				ModelFrame="BoneBasePiston"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneArmPistonBase" ParentFrame="BoneArm1_cdt">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneArm2_cdt"
				ModelFrame="BoneArmPiston"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneRightAnchorPistonBase" ParentFrame="BoneCart_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneRightAnchor_cdt"
				ModelFrame="BoneRightAnchorPiston"
			>
				<IKJoint AxisLocal="(0;0;1)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneLeftAnchorPistonBase" ParentFrame="BoneCart_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneLeftAnchor_cdt"
				ModelFrame="BoneLeftAnchorPiston"
			>
				<IKJoint AxisLocal="(0;0;1)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneGrapplerLeftPistonBase" ParentFrame="BoneGrappler_cdt">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneGrapplerLeft_cdt"
				ModelFrame="BoneGrapplerLeftPiston"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneGrapplerRightPistonBase" ParentFrame="BoneGrappler_cdt">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0; 0)"
				AttachToFrame="BoneGrapplerRight_cdt"
				ModelFrame="BoneGrapplerRightPiston"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
		</IKBone>
	</AutomaticIK>
	<AddonCamera
		FirstPersonDir="(0.653; -0.757; 0)"
		FirstPersonPos="(-2.025; 4.856; 0.585)"
		ParentFrame="BoneRotationBase_cdt"
	/>
</TruckAddon>
<_parent File="kenworth_loader" />
