<TruckAddon IsChassisFullOcclusion="true">
	<GameData>
     <InstallSocket Type="POGRUZHCIK" Offset="(-0.0; 0.0; 0.0)"/>
	</GameData>	
  <PhysicsModel Mesh="trucks/Zahvat">
			<Body ModelFrame="ruka" Mass="400" ImpactType="Truck" >
				<Constraint
					Name="ruka"
					Type="Hinge"
					AxisLocal="(0;0;1)"
					MinLimit="-20"
					MaxLimit="50"
				>
					<Motor Type="Position" Tau="0.1" Force="200000" />
			</Constraint>
				<Body ModelFrame="kovsh" Collisions="Internal" Mass="400" ImpactType="Truck" >
			<Constraint
						Name="kovsh"
						Type="Hinge"
						AxisLocal="(0;0;1)"
						MinLimit="-90"
						MaxLimit="7"
					>
						<Motor Type="Position" Force="200000" Tau="0.1" />
					</Constraint>
        <Body ModelFrame="zahv" Collisions="Internal" Mass="400" ImpactType="Truck" >
			<Constraint
							Name="zahv"
							Type="Hinge"
							AxisLocal="(0;0;-1)"
							MinLimit="-65"
							MaxLimit="50"
						>
							<Motor Type="Position" Force="100000" Tau="0.05" />
						</Constraint>
             </Body>
           </Body>
		</Body>
	</PhysicsModel>
	<ControlledConstraints>
		<Constraint Id="loader" Name="ruka" ActionId="loader_lift" />
		<Constraint
			Id="crane_grappler"
			Name="kovsh"
			LinkToControlledConstraint="loader"
		/>
		<Constraint Id="loader_grab" Name="zahv" />
	</ControlledConstraints>
	<AutomaticIK>
		<IKBone ModelFrame="Cilindir1" ParentFrame="osn" 
		 >
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				ModelFrame="Shtok1"
				ParentFrame="Cilindir1"
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="ruka"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone
			ModelFrame="HidrCil3"
			ParentFrame="Bucket_cdt"
			AttachOffset="(0.171; 0.531; -0)"
			AttachToFrame="Grab_cdt"
		>
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				ModelFrame="Shtok3"
				ParentFrame="HidrCil3"
				AttachOffset="(0.353; -0.008; 0)"
				AttachToFrame="Grab_cdt"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone
			ModelFrame="Tyaga1"
			ParentFrame="Bucket_cdt"
			AttachOffset="(-0.25;0.2;0)"
			AttachToFrame="Tyaga2"
		>
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
		</IKBone>
		<IKBone
			ModelFrame="HidrCil2"
			ParentFrame="Arm_cdt"
			AttachOffset="(0.55; -0.34; 0)"
			AttachToFrame="Tyaga_cdt"
		>
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				ModelFrame="Shtok2"
				ParentFrame="HidrCil2"
				AttachOffset="(0.717; 0.004; 0.001)"
				AttachToFrame="Tyaga_cdt"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
	</AutomaticIK>
</TruckAddon>
