<_templates Include="trucks">
	<Wheel>
		<Wheel
			HardpointOffsetY="-0.25"
			SuspensionMin="-0.15"
			SuspensionStrength="0.01"
			Torque="default"
			Type="kamaz_double"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.45"
		HardpointDefaultZ="0.95"
	>
	<Wheel _template="Wheel" HardpointX="-5.195" ParentFrame="BonePricep_cdt" />
		<Wheel
			_template="Wheel"
			HardpointX="-5.195"
			RightSide="true"
			ParentFrame="BonePricep_cdt"
		/>
			<Wheel _template="Wheel" HardpointX="-6.55" ParentFrame="BonePricep_cdt" />
		<Wheel
			_template="Wheel"
			HardpointX="-6.55"
			RightSide="true"
			ParentFrame="BonePricep_cdt"
		/>	
	
	</Wheels>

	<TruckData FuelCapacity="8400" RepairsCapacity="200">
	  
	 
		<OcclusionMap
			HalfSizeZ="1.341"
			MinX="-6.796"
			MaxX="-3.601"
			ParentFrame="BoneFront_cdt"
		/>
			<Constraint
			PlaneAxisLocal="(0; 0; 1.0)"
			PlaneMin="-90"
			PlaneMax="90"
			TwistAxisLocal="(1.0; 0; 0)"
			TwistMin="-30"
			TwistMax="30"
			Type="Ragdoll"
		>
			<TwistMotor Damping="60000" Spring="320000" Type="Spring" />
		</Constraint>
		
		<Camera CabinPos="(0.4; 4.4; 0.0)" ParentFrame="" />
			
		<Axles>
			<Axle Frame="Axle1" LeftWheel="0" RightWheel="1" />
			<Axle Frame="Axle2" LeftWheel="2" RightWheel="3" />
			
		</Axles>
		<Shakers>
			<Shaker Frame="Object003_shaker" MaxAngle="(0; 2; 0)" MaxFrequency="3" />
			<Shaker Frame="Object0464_shaker" MaxAngle="(4; 4; 4)" MaxFrequency="5" />
			<Shaker Frame="Object004_shaker" MaxAngle="(2; 3; 0)" MaxFrequency="2" />
			<Shaker Frame="Object001_shaker" MaxAngle="(3; 3; 3)" MaxFrequency="3" />
			<Shaker Frame="Object0463_shaker" MaxAngle="(4; 4; 4)" MaxFrequency="5" />
			<Shaker Frame="Object0462_shaker" MaxAngle="(1; 1; 1)" MaxFrequency="2" />
			<Shaker Frame="Object002_shaker" MaxAngle="(3; 3; 3)" MaxFrequency="3" />
		</Shakers>
<LimitedFluid
			Center="(-1.279; 2.15; 0)"
			LengthX="11.1"
			RadiusY="0.772"
			RadiusZ="1.2"
			Type="Cylinder"
		/>
	</TruckData>
	<PoweredConstraints>
		<Group Id="_trailer_foot">
			<Constraint Name="Foot" Position="0.5" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<RepairsHide>
		<Mesh HideThreshold="0.0" Frame="remont" />
		
	</RepairsHide>
	<PhysicsModel Mesh="trucks/trailer_bochka">
<Body
			Mass="2000"
			CenterOfMassOffset="(-3.359 1.114; 0)"
			ImpactType="Truck"
			>
			<Body
				CenterOfMassOffset="(-0.271; 1.114; 0)"
				ImpactType="Truck"
				Mass="3000"
				ModelFrame="BonePricep_cdt"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-10"
					MaxLimit="10"
					Type="Hinge"
				>
					<Motor Damping="200000" Spring="200000" Type="Spring" />
					</Constraint>
				<Body
				ForceBodyParams="true"
				Mass="100"
				ModelFrame="BoneLapy1_cdt"
				NoFoliageCollisions="true"
			>
					<Constraint
					    
						AxisLocal="(0;1;0)"
						MinLimit="0"
						MaxLimit="0.5"
						Name="Foot"
						Type="Prismatic"
					>
					<Motor Force="80000" Type="Position" />
					</Constraint>
					
				
				</Body>	
				<Body
				ForceBodyParams="true"
				Mass="100"
				ModelFrame="BoneLapy_cdt"
				NoFoliageCollisions="true"
			>
					<Constraint
					    
						AxisLocal="(0;1;0)"
						MinLimit="0"
						MaxLimit="0.5"
						Name="Foot"
						Type="Prismatic"
					>
					<Motor Force="1000000" Type="Position" />
					</Constraint>
					
				</Body>		
					<Body
					 ModelFrame="BonePrav_cdt"  
						Mass="10"
				Collisions="None"
			>
				<Constraint
					Type="Hinge"
					MinLimit="-50" 
					MaxLimit="10"
					AxisLocal="(0; 0; 1)"
				/>
			
				</Body>	
				<Body
					 ModelFrame="BoneZap3_cdt"  
						Mass="60"
				Collisions="None"
			>
				<Constraint
					Type="Hinge"
					MinLimit="-2" MaxLimit="2"
					AxisLocal="(1; 0; 1)"
				/>					
			
				
			
			
				</Body>	
</Body>					
</Body>	
	</PhysicsModel>
	<ModelAttachments>
			<Ignition>
			<Flare
				Pos="(-7.409; 0.548; 0.82)"
				ParentFrame="Chassis_cdt"
				Color="g(168; 42; 42) x 2"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Size="1.0"
				SizeAtDay="0.4"
			/>
			<Flare
				Pos="(-7.409; 0.548; -0.82)"
				ParentFrame="Chassis_cdt"
				Color="g(168; 42; 42) x 2"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Size="1.0"
				SizeAtDay="0.4"
			/>
		</Ignition>
		<StopSignals>
			<Flare
				Pos="(-7.409; 0.548; 0.9)"
				ParentFrame="Chassis_cdt"
				Color="g(168; 42; 42) x 2"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Size="1.0"
				SizeAtDay="0.4"
			/>
			<Flare
				Pos="(-7.409; 0.548; -0.9)"
				ParentFrame="Chassis_cdt"
				Color="g(168; 42; 42) x 2"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Size="1.0"
				SizeAtDay="0.4"
			/>
		</StopSignals>
	</ModelAttachments>
	<GameData>
		<WinchSocket Pos="(-7.251; 0.757; 0.411)" ParentFrame="BonePricep_cdt" />
		<WinchSocket Pos="(-7.251; 0.757; -0.411)" ParentFrame="BonePricep_cdt" />
		
		<RequiredAddon Types="kamaz_sedlo"  />
		<RequiredAddon Types="0 migalki,0 migalki1"  />
		<InstallSocket Type="bochkalpricep" Offset="(3.452; 1.479; 0)" />
		
		
	</GameData>
		
	
	<AutomaticIK>
		<IKBone ModelFrame="gidro1" ParentFrame="BonePricep_cdt">
			<IKJoint AxisLocal="(0; -0; 1)" Type="Hinge" />
			<IKBone
			ModelFrame="gidro"
			PanelFrame="gidro1"
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="BoneTrap_cdt"
				
			>
		     <IKJoint AxisLocal="(0;1;0)" Type="Slider" />
			</IKBone>
			</IKBone>
	</AutomaticIK>
</Truck>
