<_templates Include="trucks" >
	<Wheel>
		<TrailerWheelFront
			HardpointOffsetY="-0.15"
			SuspensionMin="-0.3"
			SuspensionStrength="0.04"
			Type="ford_wheel_double"
			Torque="default"			
			ParentFrame="BoneFrontCart_cdt"
			HardpointX="2.895"
		/>
		<TrailerWheelRear
			HardpointOffsetY="-0.12"
			SuspensionMin="-0.3"
			SuspensionStrength="0.04"
			Type="ford_wheel_double"
			Torque="default"			
			ParentFrame="BoneRear_cdt"
			HardpointX="-2.895"
		/>		
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.59"
		HardpointDefaultZ="1.122"
	>
		<Wheel _template="TrailerWheelFront" />
		<Wheel _template="TrailerWheelFront" RightSide="true" />
		<Wheel _template="TrailerWheelRear" />
		<Wheel _template="TrailerWheelRear"	RightSide="true" />
	</Wheels>
	<TruckData>
		<OcclusionMap
			HalfSizeZ="1.863"
			MinX="-4.019"
			MaxX="3.913"
			ParentFrame="BoneRear_cdt"
		/>
		<Constraint _template="TrailerRagdoll">
			<TwistMotor _inheritRemove="true" />
		</Constraint>
		<Camera Center="(-2.4; 0; 0)" ParentFrame="BoneRear_cdt" />
		<Axles>
			<Axle Frame="BoneAxle1" />
			<Axle Frame="BoneAxle2" />		
		</Axles>
	<PoweredConstraints>
		<Group Id="Stopor Trailer">
			<Constraint TerminalFix="true" Name="telega" Position="0" />
		</Group>
	</PoweredConstraints>
	</TruckData>
	<PhysicsModel Mesh="trucks/kenworth_trailer">
		<Body ImpactType="Truck" Mass="600" ModelFrame="BoneFront_cdt">
			<Body ImpactType="Truck" Mass="2000" ModelFrame="BoneRear_cdt">
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-15"
					MaxLimit="15"
					Type="Hinge"
				>
					<Motor Damping="32000" Spring="120000" Type="Spring" />
				</Constraint>
				<Body ImpactType="Truck" Mass="5" ModelFrame="BoneBeltShifterRear_cdt">
					<Constraint
						AxisLocal="(1;0;0)"
						MinLimit="-0.1"
						MaxLimit="0.09"
						Type="Prismatic"
					>
						<Motor Damping="2" Spring="30" Type="Spring" />
					</Constraint>
					<Body _template="Mudguard" ModelFrame="BoneBeltReartLeft_cdt">
						<Constraint AxisLocal="(1; 0; 0)" MinLimit="-20" MaxLimit="0" />
					</Body>
					<Body _template="Mudguard" ModelFrame="BoneBeltRearRight_cdt">
						<Constraint AxisLocal="(1; 0; 0)" MinLimit="0" MaxLimit="20" />
					</Body>
				</Body>
				<Body ImpactType="Truck" Mass="5" ModelFrame="BoneBeltShifterFront_cdt">
					<Constraint
						AxisLocal="(1;0;0)"
						MinLimit="-0.09"
						MaxLimit="0.1"
						Type="Prismatic"
					>
						<Motor Damping="2" Spring="30" Type="Spring" />
					</Constraint>
					<Body _template="Mudguard" ModelFrame="BoneBeltFrontLeft_cdt">
						<Constraint AxisLocal="(1; 0; 0)" MinLimit="-20" MaxLimit="0" />
					</Body>
					<Body _template="Mudguard" ModelFrame="BoneBeltFrontRight_cdt">
						<Constraint AxisLocal="(1; 0; 0)" MinLimit="0" MaxLimit="20" />
					</Body>
				</Body>
				<Body _template="Mudguard" ModelFrame="BoneMudguardRearRigth_cdt">
					<Constraint AxisLocal="(0; 0.0; 1.0)" MinLimit="-5" MaxLimit="5" />
				</Body>
				<Body _template="Mudguard" ModelFrame="BoneMudguardRearLeft_cdt">
					<Constraint AxisLocal="(0; 0.0; 1.0)" MinLimit="-5" MaxLimit="5" />
				</Body>
				<Body AngularDamping="3.0" Mass="50" ModelFrame="BoneShieldRear_cdt">
					<Constraint Type="Hinge" AxisLocal="(0; 0.0; -1.0)" MinLimit="-2" MaxLimit="2" />
				</Body>		
			</Body>
			<Body Mass="800" ModelFrame="BoneFrontCart_cdt">
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-110"
					MaxLimit="110"
					Type="Hinge"
					Name="telega"
				>
					<Motor Damping="8000" Spring="40000" Type="Spring" />
				</Constraint>
				<Body ForceBodyParams="true" Mass="400" ModelFrame="BoneHandle_cdt">
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="-60"
						MaxLimit="60"
						Type="Hinge"
					
					/>
					<Body ImpactType="Truck" Mass="3" ModelFrame="BoneWire_cdt">
						<Constraint
							AxisLocal="(0;1;0.2)"
							MinLimit="-0.2"
							MaxLimit="0.2"
							Type="Prismatic"
						>
							<Motor Damping="4" Spring="700" Type="Spring" />
						</Constraint>
					</Body>
				</Body>
				<Body _template="Mudguard" ModelFrame="BoneMudguardFrontRight_cdt">
					<Constraint AxisLocal="(0; 0.0; 1.0)" MinLimit="-20" MaxLimit="6.4" />
				</Body>
				<Body _template="Mudguard" ModelFrame="BoneMudguardFrontLeft_cdt">
					<Constraint AxisLocal="(0; 0.0; 1.0)" MinLimit="-20" MaxLimit="6.4" />
				</Body>				
			</Body>	
			<Body AngularDamping="3.0" Mass="50" ModelFrame="BoneShieldFront_cdt">
				<Constraint Type="Hinge" AxisLocal="(0; 0.0; -1.0)" MinLimit="-2" MaxLimit="2" />
			</Body>					
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-3.491; 1.581; 0)" ParentFrame="BoneRear_cdt" />
			<Flare _template="StopSignal" Pos="(-3.729; 1.384; 1.201)" ParentFrame="BoneRear_cdt" />
			<Flare _template="StopSignal" Pos="(-3.729; 1.384; -1.201)" ParentFrame="BoneRear_cdt" />
		</StopSignals>
		<ReverseSignals>
			<Light _template="ReverseSignal" Pos="(-3.491; 1.581; 0)" ParentFrame="BoneRear_cdt" />
			<Flare _template="ReverseSignal" Pos="(-3.729; 1.384; 1.201)" ParentFrame="BoneRear_cdt" />
			<Flare _template="ReverseSignal" Pos="(-3.729; 1.384; -1.201)" ParentFrame="BoneRear_cdt" />
			<Flare
				_template="BlueStreak"
				Dir="(-1; 0; 0)"
				Pos="(-3.729; 1.384; 1.201)"
				ParentFrame="BoneRear_cdt"
			/>
			<Flare
				_template="BlueStreak"
				Dir="(-1; 0; 0)"
				Pos="(-3.729; 1.384; -1.201)"
				ParentFrame="BoneRear_cdt"
			/>
		</ReverseSignals>
		<Ignition>
			<Light _template="IgnitionSignalRed" Pos="(-3.491; 1.581; 0)" ParentFrame="BoneRear_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-3.729; 1.384; 1.201)" ParentFrame="BoneRear_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-3.729; 1.384; -1.201)" ParentFrame="BoneRear_cdt" />
		</Ignition>
	</ModelAttachments>
	<GameData>
		<WinchSocket Pos="(-3.703; 1.029; 0.638)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(-3.703; 1.029; -0.638)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(0.843; 1.068; 1.312)" ParentFrame="BoneFront_cdt" />
		<WinchSocket Pos="(0.843; 1.068; -1.312)" ParentFrame="BoneFront_cdt" />
		<WinchSocket Pos="(6.037; 1.146; 0)" ParentFrame="BoneHandle_cdt" />
		<LoadArea
			Min="(-3.333; 1.3; -1.23)"
			Max="(-0.433; 2.9; 1.23)"
			TrailerLoad="true"
			Type="MediumLogs"
			ParentFrame="BoneRear_cdt"
		/>
		<LoadArea
			Min="(-0.134; 1.3; -1.23)"
			Max="(3.3; 2.9; 1.23)"
			TrailerLoad="true"
			Type="MediumLogs"
			ParentFrame="BoneFront_cdt"
		/>
		<InstallSocket Offset="(6.028; 0.8; 0)" Type="KamazTrailerCart" ParentFrame="BoneHandle_cdt" />
		<AddonSockets>
			<Socket Names="UsLoadLogsMediumTrailer" Offset="(0; 0; 0)" ParentFrame="BoneRear_cdt" />
		</AddonSockets>
		
	</GameData>	
</Truck>
