<_templates Include="trucks">
	<Wheel>
		<Wheel
			HardpointOffsetY="-0.25"
			SuspensionMin="-0.15"
			SuspensionStrength="0.004"
			Torque="default"
			Type="zil_double"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.45"
		HardpointDefaultZ="1.0"
	>
	<Wheel _template="Wheel" HardpointX="-7.892" ParentFrame="BonePricep_cdt" />
		<Wheel
			_template="Wheel"
			HardpointX="-7.892"
			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"
		/>
		<Wheel _template="Wheel" HardpointX="-5.195" ParentFrame="BonePricep_cdt" />
		<Wheel
			_template="Wheel"
			HardpointX="-5.195"
			RightSide="true"
			ParentFrame="BonePricep_cdt"
		/>
	   
		
	
		
	</Wheels>

	<TruckData FuelCapacity="800" RepairsCapacity="100">
	<LimitedFluid
			AxisX="(0; 1; 0)"
			Center="(3.064; 1.932; 0.263)"
			LengthX="0.784"
			RadiusY="0.25"
			RadiusZ="0.25"
			Type="Cylinder"
		/>
		<LimitedFluid
			AxisX="(0; 1; 0)"
			Center="(3.337; 1.932; -0.304)"
			LengthX="0.784"
			RadiusY="0.25"
			RadiusZ="0.25"
			Type="Cylinder"
		/>
		<LimitedFluid
			AxisX="(0; 1; 0)"
			Center="(3.887; 1.932; -0.754)"
			LengthX="0.784"
			RadiusY="0.25"
			RadiusZ="0.25"
			Type="Cylinder"
		/>
		<LimitedFluid
			AxisX="(0; 1; 0)"
			Center="(3.615; 1.932; 0.229)"
			LengthX="0.784"
			RadiusY="0.25"
			RadiusZ="0.25"
			Type="Cylinder"
		/>
		<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" />
			<Axle Frame="Axle3" LeftWheel="4" RightWheel="5" />
		</Axles>
	
	</TruckData>
	<PoweredConstraints>
		<Group Id="_trailer_foot">
			<Constraint Name="Foot" Position="0.5" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<RepairsHide>
		<Mesh HideThreshold="0.0" Frame="repairs_hide" />
		
	</RepairsHide>
	<PhysicsModel Mesh="trucks/trailer1">
<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="-15"
					MaxLimit="15"
					Type="Hinge"
				>
					<Motor Damping="200000" Spring="200000" Type="Spring" />
					</Constraint>
					
					<Body Mass="400" ModelFrame="BoneTent_cdt">
				<Constraint
					AxisLocal="(0; 0; 1)"
					MinLimit="-1.5"
					MaxLimit="1.5"
					Type="Prismatic"
				>
					<Motor Damping="3000" Spring="14000" Type="Spring" />
				</Constraint>
				</Body>
					<Body
				CenterOfMassOffset="(0; 0; 0)"
				Mass="50"
				ModelFrame="Object002_shaker"
			>
				<Constraint
					Type="Ragdoll"
					PlaneAxis="(0; 0; 0.0)"
					TwistAxis="(0; 0.0; 0)"
					Cone="5"
					PlaneMin="-15"
					PlaneMax="15"
				>
					<PlaneMotor
						Type="Spring"
						Spring="400"
						Damping="400"
					/>
					<ConeMotor
						Type="Spring"
						Spring="400"
						Damping="400"
					/>
					</Constraint>
					</Body>
			<Body
				CenterOfMassOffset="(0; 0; 0)"
				Mass="50"
				ModelFrame="Object0463_shaker"
			>
				<Constraint
					Type="Ragdoll"
					PlaneAxis="(0; 0; 0.0)"
					TwistAxis="(0; 0.0; 0)"
					Cone="5"
					PlaneMin="-15"
					PlaneMax="15"
				>
					<PlaneMotor
						Type="Spring"
						Spring="400"
						Damping="400"
					/>
					<ConeMotor
						Type="Spring"
						Spring="400"
						Damping="400"
					/>
					</Constraint>
					</Body>
			<Body
				CenterOfMassOffset="(0; 0; 0)"
				Mass="50"
				ModelFrame="Object001_shaker"
			>
				<Constraint
					Type="Ragdoll"
					PlaneAxis="(0; 0; 0.0)"
					TwistAxis="(0; 0.0; 0)"
					Cone="5"
					PlaneMin="-15"
					PlaneMax="15"
				>
					<PlaneMotor
						Type="Spring"
						Spring="400"
						Damping="400"
					/>
					<ConeMotor
						Type="Spring"
						Spring="400"
						Damping="400"
					/>
					</Constraint>
					
					</Body>
			<Body
				CenterOfMassOffset="(0; 0; 0)"
				Mass="50"
				ModelFrame="Object0462_shaker"
			>
				<Constraint
					Type="Ragdoll"
					PlaneAxis="(0; 0; 0.0)"
					TwistAxis="(0; 0.0; 0)"
					Cone="5"
					PlaneMin="-15"
					PlaneMax="15"
				>
					<PlaneMotor
						Type="Spring"
						Spring="400"
						Damping="400"
					/>
					<ConeMotor
						Type="Spring"
						Spring="400"
						Damping="400"
					/>
					</Constraint>
					</Body>	
							
			<Body Mass="10" ModelFrame="Object0464_shaker">
				<Constraint
					AxisLocal="(0; 0; 1)"
					MinLimit="-1.5"
					MaxLimit="1.5"
					Type="Prismatic"
				>
					<Motor Damping="300" Spring="14" Type="Spring" />
				</Constraint>
				</Body>	
				<Body Mass="10" ModelFrame="Object003_shaker">
				<Constraint
					AxisLocal="(1; 0; 1)"
					MinLimit="-1.5"
					MaxLimit="1.5"
					Type="Prismatic"
				>
					<Motor Damping="300" Spring="14" Type="Spring" />
				</Constraint>
			</Body>	
				<Body Mass="10" ModelFrame="Object004_shaker">
				<Constraint
					AxisLocal="(1; 0; 0)"
					MinLimit="-1.5"
					MaxLimit="1.5"
					Type="Prismatic"
				>
					<Motor Damping="300" Spring="14" Type="Spring" />
				</Constraint>
				
				
				</Body>	
				<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="BoneZap_cdt"  
						Mass="60"
				Collisions="None"
			>
				<Constraint
					Type="Hinge"
					MinLimit="-2" MaxLimit="2"
					AxisLocal="(1; 0; 1)"
				/>					
				</Body>	
				
			<Body
					 ModelFrame="BoneZap1_cdt"  
						Mass="60"
				Collisions="None"
			>
				<Constraint
					Type="Hinge"
					MinLimit="-2" MaxLimit="2"
					AxisLocal="(1; 0; 1)"
				/>					
				</Body>	
				<Body
					 ModelFrame="BoneZap2_cdt"  
						Mass="60"
				Collisions="None"
			>
				<Constraint
					Type="Hinge"
					MinLimit="-2" MaxLimit="2"
					AxisLocal="(1; 0; 1)"
				/>					
				</Body>	
				<Body
					 ModelFrame="BoneZap3_cdt"  
						Mass="60"
				Collisions="None"
			>
				<Constraint
					Type="Hinge"
					MinLimit="-2" MaxLimit="2"
					AxisLocal="(1; 0; 1)"
				/>					
			
				
				</Body>	
					<Body Mass="600" ModelFrame="BoneTrap_cdt">
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="-0"
					MaxLimit="105"
						Name="trap"
						Type="Hinge"
					>
						<Motor Force="950000"  Type="Position" />
				</Constraint>
				
				
					<Body Mass="600" ModelFrame="BoneTrap_cdt001">
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="-0"
					MaxLimit="180"
						Name="trap1"
						Type="Hinge"
					>
						<Motor Force="950000"  Type="Position" />
				</Constraint>
			</Body>	
				</Body>	
</Body>					
</Body>	
	</PhysicsModel>
	<ModelAttachments>
			<Ignition>
			<Flare
				Pos="(-8.737; 0.337; 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="(-8.737; 0.337; -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="(-8.737; 0.337; 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="(-8.737; 0.337; -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="(-8.737; 0.192; 0.15)" ParentFrame="BonePricep_cdt" />
		<WinchSocket Pos="(-8.737; 0.192; -0.2)" ParentFrame="BonePricep_cdt" />
			<LoadArea
			Min="(-5.75; 1.0; -1.4)"
			Max="(4.239; 3.0; 1.4)"
			TrailerLoad="true"
			Type="ShortLogs"
		/>
		<LoadArea
			Min="(-6.75; 1.0; -1.4)"
			Max="(4.239; 3.0; 1.4)"
			TrailerLoad="true"
			Type="MediumLogs"
		/>
		
	
		<LoadArea
			Min="(-8.75; 1.0; -1.4)"
			Max="(4.239; 3.0; 1.4)"
			TrailerLoad="true"
			Type="LongLogs"
			
		/>
		<RequiredAddon Types="kamaz_sedlo"  />
		<RequiredAddon Types="0 migalki,0 migalki1"  />
		<InstallSocket Type="tralpricep2" Offset="(3.452; 1.479; 0)" />
		<AddonSockets>
			<Socket Names="LoadLibher" Offset="(-0.0; 0.0; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="LoadKatok" Offset="(0.0; 0.0; 0.0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="load_exkovator" />
		</AddonSockets>
		
	</GameData>
		<ControlledConstraints>
	<Constraint Id="trap" Name="trap" />
		<Constraint Id="trap1" Name="trap1" />
	</ControlledConstraints>
	
	<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>
