<_templates Include="trucks">
	<Wheel>
		<Wheel
			SuspensionMin="-0.6"
			SuspensionStrength="1.0"
			Torque="default"
			Type="John_Deere"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.506"
		HardpointDefaultZ="1.1"
	>
		<Wheel _template="Wheel" HardpointX="-7.716" ParentFrame="BoneAmortizatorP1_cdt" />
		<Wheel _template="Wheel" HardpointX="-7.716" ParentFrame="BoneAmortizatorP2_cdt" RightSide="true" />
		<Wheel _template="Wheel" HardpointX="-9.166" ParentFrame="BoneAmortizatorP1_cdt" />
		<Wheel _template="Wheel" HardpointX="-9.166" ParentFrame="BoneAmortizatorP2_cdt" RightSide="true" />
	</Wheels>
	<TruckData TrailerCanDetach="true">
		<OcclusionMap
			HalfSizeZ="2.0"
			MinX="-9.702"
			MaxX="-3.936"
                        ParentFrame="Bone_Cart_vidv"
			Texture="trucks/occlusion/chassis_trailer__s_d_a.tga"
		/>
		<Constraint _template="TrailerRagdoll">
			<PlaneConeMotor Damping="6000" Spring="20000" Type="Spring" />
		</Constraint>
		<Camera Center="(-6.228; 0; 0)" ParentFrame="Bone_Cart_vidv" />
	</TruckData>
	<PhysicsModel Mesh="trucks/John_Deere_cart_Long">
		<Body ImpactType="Truck" Collisions="All" Mass="1000">
						<Body Collisions="All" Mass="2000" ModelFrame="Bone_Cart_vidv">
							<Constraint
								AxisLocal="(1;0;0)"
								MinLimit="0"
								MaxLimit="2.1"
								Name="Foot"
								Type="Prismatic"
							>
								<Motor Force="200000" Tau="1.0" Type="Position" />
							</Constraint>

							<Body Collisions="None" Mass="1000" ModelFrame="BonePovorot_grap_cdt">
								<Constraint
									AxisLocal="(0;1;0)"
									MinLimit="-40"
									MaxLimit="40"
									Type="Hinge"
								>
									<Motor Damping="1000" Spring="5000" Type="Spring" />
								</Constraint>
							<Body Collisions="Internal" Mass="500" ModelFrame="BoneOsnova_grap_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-30"
									MaxLimit="30"
									Type="Hinge"
								>
									<Motor Damping="1000" Spring="50000" Type="Spring" />
								</Constraint>

			<Body ImpactType="Truck" Collisions="Internal" Mass="400" ModelFrame="BoneGrappler1_cdt">
				<Constraint
					AxisLocal="(-1; 0; 0)"
					MinLimit="-30"
					MaxLimit="80"
					Name="Foot2"
					Type="Hinge"
				>
					<Motor Force="50000" Tau="0.04" Type="Position" />
				</Constraint>
		        </Body>
			<Body ImpactType="Truck" Collisions="Internal" Mass="400" ModelFrame="BoneGrappler2_cdt">
				<Constraint
					AxisLocal="(1; 0; 0)"
					MinLimit="-30"
					MaxLimit="80"
					Name="Foot2"
					Type="Hinge"
				>
					<Motor Force="50000" Tau="0.04" Type="Position" />
				</Constraint>
		</Body>
		</Body>
		</Body>

							<Body Collisions="None" Mass="1000" ModelFrame="BoneAmortizatorP1_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-25"
									MaxLimit="25"
									Type="Hinge"
								>
									<Motor Damping="40" Spring="10000" Type="Spring" />
								</Constraint>
		         </Body>
							<Body Collisions="None" Mass="1000" ModelFrame="BoneAmortizatorP2_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-25"
									MaxLimit="25"
									Type="Hinge"
								>
									<Motor Damping="40" Spring="10000" Type="Spring" />
								</Constraint>

		         </Body>
		         </Body>
		</Body>
	</PhysicsModel>

	<GameData>
		<WinchSocket Pos="(-10.069; 1.139; 0)" ParentFrame="Bone_Cart_vidv" />
		<WinchSocket Pos="(-2.765; 0.935; 0)" ParentFrame="Bone_Trailer" />
		<InstallSocket Offset="(-2.761; 0.942; 0.0)" Type="John_Deere_cart" />
		<RequiredAddon Types="John_Deere_Lesovoz" />
		<LoadArea
			Min="(-10.0; 3.257; -1.2)"
			Max="(-1.0; 1.057; 1.2)"
			Type="LongLogs"
			ParentFrame="Bone_Cart_vidv"
		/>
		<AddonSockets>
			<Socket Names="Medium_Buffalo_trailer" Offset="(0.0; 0.0; 0.0)" ParentFrame="Bone_Cart_vidv" />
		</AddonSockets>
	</GameData>
	<PoweredConstraints>
		<Group Id="Fold_the_trailer">
			<Constraint Name="Foot" Position="2.1" />
		</Group>
	</PoweredConstraints>
	<AutomaticIK>
		<IKBone ModelFrame="CylinderN1" ParentFrame="BoneGrappler1_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BoneOsnova_grap_cdt"
				ModelFrame="CylinderN3"
			>
				<IKJoint AxisLocal="(0;0;1)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="CylinderN4" ParentFrame="BoneGrappler2_cdt">
			<IKJoint AxisLocal="(1;0;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BoneOsnova_grap_cdt"
				ModelFrame="CylinderN2"
			>
				<IKJoint AxisLocal="(0;0;1)" Type="Slider" />
			</IKBone>
		</IKBone>
	</AutomaticIK>
	<ControlledConstraints>
		<Constraint Id="Grappler_2" Name="Foot2" />
	</ControlledConstraints>
</Truck>
