t<_templates Include="trucks">
	<Wheel>
	<Wheel
			HardpointOffsetY="-0.3"
			SuspensionMin="-0.2"
			SuspensionStrength="0.01"
			Torque="default"
			Type="kamaz_double"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.6"
		HardpointDefaultZ="0.97"
	>
	  <Wheel _template="Wheel" HardpointX="-5.85" ParentFrame="BoneRear_cdt" />
		<Wheel
			_template="Wheel"
			HardpointX="-5.85"
			RightSide="true"
			ParentFrame="BoneRear_cdt"
		/>
			<Wheel _template="Wheel" HardpointX="-4.5" ParentFrame="BoneRear_cdt" />
		<Wheel
			_template="Wheel"
			HardpointX="-4.5"
			RightSide="true"
			ParentFrame="BoneRear_cdt"
		/>
	   
		
	</Wheels>

	<TruckData GaragePoints="4" FuelCapacity="100" 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>
	</TruckData>
	<PoweredConstraints>
		<Group Id="_trailer_foot">
			<Constraint Name="Foot" Position="0.5" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<RepairsHide>
		<Mesh HideThreshold="0.0" Frame="zapaska001" />
		
		<Mesh HideThreshold="0.0" Frame="zapaska" />
	</RepairsHide>
	<PhysicsModel Mesh="trucks/polupricepTent">
<Body
			Mass="2000"
			CenterOfMassOffset="(-3.359 1.114; 0)"
			ImpactType="Truck"
			>
			<Body Mass="200" ModelFrame="TENT_cdt">
				<Constraint
					AxisLocal="(0; 0; 1)"
					MinLimit="-0.10"
					MaxLimit="0.10"
					Type="Prismatic"
				>
					<Motor Damping="3000" Spring="14000" Type="Spring" />
				</Constraint>
		
			</Body>
			<Body
				CenterOfMassOffset="(-0.271; 1.114; 0)"
				ImpactType="Truck"
				Mass="3000"
				ModelFrame="BoneRear_cdt"
			>
				<Constraint
					AxisLocal="( -1;0;0)"
					MinLimit="-9"
					MaxLimit="9"
					Type="Hinge"
				>
					<Motor Damping="30000" Spring="30000" Type="Spring" />
					</Constraint>
						<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="80000" Type="Position" />
					</Constraint>
					
				</Body>	
                     <Body
					 ModelFrame="BoneZapaska_cdt"  
						Mass="60"
				Collisions="None"
			>
				<Constraint
					Type="Hinge"
					MinLimit="-2" MaxLimit="2"
					AxisLocal="(1; 0; 1)"
				/>					
				</Body>	
 <Body
					 ModelFrame="BoneZapaska_cdt001"  
						Mass="60"
				Collisions="None"
			>
				<Constraint
					Type="Hinge"
					MinLimit="-2" MaxLimit="2"
					AxisLocal="(1; 0; 1)"
				/>
				</Body>
		
				<Body
					 ModelFrame="BonePrav_cdt"  
						Mass="10"
				Collisions="None"
			>
				<Constraint
					Type="Hinge"
					MinLimit="-30" 
					MaxLimit="10"
					AxisLocal="(0; 0; 1)"
				/>
				</Body>	
				<Body
					 ModelFrame="BoneLev_cdt"  
						Mass="10"
				Collisions="None"
			>
				<Constraint
					Type="Hinge"
					MinLimit="-30" 
					MaxLimit="10"
					AxisLocal="(0; 0; 1)"
				/>
				
				
		</Body>				
		</Body>	
</Body>					
	</PhysicsModel>
	<ModelAttachments>
			<Ignition>
			<Flare
				Pos="(-6.71; 1.05; 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="(-6.71; 1.05; -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="(-6.71; 1.05; 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="(-6.71; 1.05; -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 GaragePoints="4">
		<WinchSocket Pos="(-6.75; 1.022; 0.15)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(-6.75; 1.022; -0.2)" ParentFrame="BoneRear_cdt" />
		<LoadArea
			Min="(-5.75; 0.0; -2.5)"
			Max="(4.239; 3.0; -1.0)"
			TrailerLoad="true"
			Type="ShortLogs"
		/>
		<LoadArea
			Min="(-6.75; 1.0; -1.2)"
			Max="(4.239; 3.0; 1.2)"
			TrailerLoad="true"
			Type="MediumLogs"
		/>
		
	
		<LoadArea
			Min="(-8.75; 1.0; -1.2)"
			Max="(4.239; 3.0; 1.2)"
			TrailerLoad="true"
			Type="LongLogs"
			
		/>	
		<RequiredAddon Types="kamaz_sedlo"  />
		<InstallSocket Type="polupricep" Offset="(3.4; 1.1; 0)" />
		<AddonSockets>
		
		<Socket Names="LoadLogsLong5"  Offset="(0.0; -0.0; 0)" ParentFrame="BoneFront_cdt" >
		<ExtraParent Frame="BoneRear_cdt" />
		
		
				</Socket>
			
		</AddonSockets>
	</GameData>
	
</Truck>
