<_templates Include="trucks">
	<Wheel>
	<TrailerWheel
			
			HardpointOffsetY="-0.3"
			SuspensionMin="-0.2"
			SuspensionStrength="0.01"
			Torque="default"
			Type="pricep5460wheel"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.60"
		HardpointDefaultZ="1.03"
	>
	    <Wheel _template="TrailerWheel" HardpointX="-5.425" />
		<Wheel _template="TrailerWheel" HardpointX="-5.425" RightSide="true" />
		<Wheel _template="TrailerWheel" HardpointX="-4.202" />
		<Wheel _template="TrailerWheel" HardpointX="-4.202" RightSide="true" />
		<Wheel _template="TrailerWheel" HardpointX="-2.929" />
		<Wheel _template="TrailerWheel" HardpointX="-2.929" RightSide="true" />
	</Wheels>

	<TruckData FuelCapacity="100" RepairsCapacity="300">
	
		<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.6" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<RepairsHide>
		<Mesh HideThreshold="0.0" Frame="repairs_hide002" />
		<Mesh HideThreshold="0.0" Frame="repairs_hide001" />
		<Mesh HideThreshold="0.0" Frame="repairs_hide" />
	</RepairsHide>
	<PhysicsModel Mesh="trucks/trailer_krone">

		<Body
			ImpactType="Truck"
			Mass="2000"
			CenterOfMassOffset="(-4.202; -0.01; 0)"
			
		>
			<Body
				CenterOfMassOffset="(3.354; 1.114; 0)"
				ImpactType="Truck"
				Mass="2000"
				ModelFrame="BoneRear_cdt"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-7"
					MaxLimit="7"
					Type="Hinge"
				>
					<Motor Damping="240000" Spring="3000000" 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="BoneZapaska_cdt002"  
						Mass="60"
				Collisions="None"
			>
				<Constraint
					Type="Hinge"
					MinLimit="-2" MaxLimit="2"
					AxisLocal="(1; 0; 1)"
				/>
				
					</Body>		
					</Body>	
					
				</Body>				
	</PhysicsModel>
	<ModelAttachments>
			<Ignition>
			<Flare
				Pos="(-8.361; 1.0; 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.361; 1.0; -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.361; 1.0; 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.361; 1.0; -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.361; 1.022; 0.15)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(-8.361; 1.022; -0.2)" ParentFrame="BoneRear_cdt" />
			<LoadArea
			Min="(-5.75; 1.0; -1.2)"
			Max="(4.239; 3.0; 1.2)"
			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="platform" Offset="(3.4; 1.1; 0)"   />
		<AddonSockets>
		<Socket Names="LoadFura1" Offset="(0.0; 0.0; 0)" ParentFrame="BoneRear_cdt" />
		<Socket Names="LoadFura2"  ParentFrame="BoneRear_cdt" />
		<Socket Names="LoadLogsFura"   ParentFrame="BoneRear_cdt"  />
	
		</AddonSockets>
	</GameData>
	
</Truck>
