<Truck>
	<Wheels
		HardpointDefaultY="0.541"
		HardpointDefaultZ="0.92"
	>
		<Wheel
                ConnectedToHandbrake="true"
			HardpointOffsetY="-0.20"
			HardpointX="-0.784"
			SuspensionMin="-0.33"
			SuspensionStrength="0.022"
			Type="orkd2eai"
		/>
		<Wheel
                ConnectedToHandbrake="true"
			HardpointOffsetY="-0.20"
			HardpointX="-0.784"
			RightSide="true"
			SuspensionMin="-0.33"
			SuspensionStrength="0.022"
			Type="orkd2eai"
		/>
		<Wheel
                ConnectedToHandbrake="true"
			HardpointOffsetY="-0.18"
			HardpointX="-2.229"
			SuspensionMin="-0.36"
			SuspensionStrength="0.020"
			Type="orkd2eai"
		/>
		<Wheel
                ConnectedToHandbrake="true"
			HardpointOffsetY="-0.18"
			HardpointX="-2.229"
			RightSide="true"
			SuspensionMin="-0.36"
			SuspensionStrength="0.020"
			Type="orkd2eai"
		/>
		<Wheel
                ConnectedToHandbrake="true"
			HardpointOffsetY="-0.16"
			HardpointX="-3.665"
			SuspensionMin="-0.33"
			SuspensionStrength="0.022"
			Type="orkd2eai"
		/>
		<Wheel
                ConnectedToHandbrake="true"
			HardpointOffsetY="-0.16"
			HardpointX="-3.665"
			RightSide="true"
			SuspensionMin="-0.33"
			SuspensionStrength="0.022"
			Type="orkd2eai"
		/>
	</Wheels>
	<TruckData RepairsCapacity="200" TrailerCanDetach="false" >
		<OcclusionMap HalfSizeZ="1.85" MinX="-5.05" MaxX="5.25" />
		<Constraint
			PlaneAxisLocal="(0; 0; 1)"
			PlaneMin="-2"
			PlaneMax="2"
			TwistAxisLocal="(0; 1; 0)"
			TwistMin="-120"
			TwistMax="120"
			Type="Ragdoll"
		>
			<AllMotor Damping="100" Spring="1000" Type="Spring" />
		</Constraint>
		<Camera Center="(-1.2; 0; 0)" />
		<Axles>
			<Axle Frame="Bone001" LeftWheel="0" RightWheel="1" />
			<Axle Frame="Bone002" LeftWheel="2" RightWheel="3" />
			<Axle Frame="Bone003" LeftWheel="4" RightWheel="5" />
		</Axles>
	</TruckData>
	<PoweredConstraints>
		<Group Id="bort">
			<Constraint InitialFix="true" Name="bort_zad" Position="0" />
		</Group>
		<Group Id="foot_push">
			<Constraint Name="Foot" Position="-0.55" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<PhysicsModel Mesh="trucks/Tonar">
		<Body CenterOfMassOffset="(-1.0; -0.4; 0)" Mass="2000">
			<Body
				CenterOfMassOffset="(0.2; 0; 0)"
				Mass="3000"
				ModelFrame="Kuz_cdt"
			>
				<Constraint
					AxisLocal="(0; 0; -1)"
					MinLimit="-36"
					MaxLimit="0"
					Name="Kuzov"
					Type="Hinge"
				>
					<Motor Force="800000" Tau="0.1" Type="Position" />
				</Constraint>
				<Body Mass="200" ModelFrame="Zakr_cdt">
					<Constraint
						AxisLocal="(0;0;-1)"
						MinLimit="0"
						MaxLimit="90"
						Name="bort_zad"
						Type="Hinge"
					>
						<Motor Damping="100" Spring="300" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
			<Body
				ForceBodyParams="true"
				Mass="300"
				ModelFrame="BoneFoot_cdt"
				NoFoliageCollisions="true"
			>
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-0.55"
					MaxLimit="0"
					Name="Foot"
					Type="Prismatic"
				>
					<Motor Force="500000" Type="Position" />
				</Constraint>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light
				AttenEnd="2.0"
				Color="(102; 1; 1) x 4"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
				Pos="(-4.205; 1.145;  0.816)"
			/>
			<Light
				AttenEnd="2.0"
				Color="(102; 1; 1) x 4"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
				Pos="(-4.205; 1.145; -0.816)"
			/>
			<Flare
				Color="g(168; 42; 42) x 2"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Pos="(-4.205; 1.145;  0.816)"
				Size="1.0"
				SizeAtDay="0.4"
			/>
			<Flare
				Color="g(168; 42; 42) x 2"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Pos="(-4.205; 1.145; -0.816)"
				Size="1.0"
				SizeAtDay="0.4"
			/>
		</StopSignals>
		<ReverseSignals>
			<Light
				AttenEnd="2.0"
				Color="(102; 102; 102) x 16"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
				Pos="(-4.205; 1.150;  0.675)"
			/>
			<Light
				AttenEnd="2.0"
				Color="(102; 102; 102) x 16"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
				Pos="(-4.205; 1.150; -0.675)"
			/>
			<Flare
				Color="g(255; 255; 255) x 0.5"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Pos="(-4.205; 1.150;  0.675)"
				Size="1.2"
				SizeAtDay="0.4"
			/>
			<Flare
				Color="g(255; 255; 255) x 0.5"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Pos="(-4.205; 1.150; -0.675)"
				Size="1.2"
				SizeAtDay="0.4"
			/>
		</ReverseSignals>
		<Ignition>
			<Flare
				Color="g(117; 72; 72) x 2.5"
				Dir="(0;0; 1)"
				DirAngle="100"
				Pos="(-4.073; 1.203;  1.223)"
				Size="0.6"
			/>
			<Flare
				Color="g(117; 72; 72) x 2.5"
				Dir="(0;0;-1)"
				DirAngle="100"
				Pos="(-4.073; 1.203; -1.223)"
				Size="0.6"
			/>
			<Flare
				Color="g(117; 72; 72) x 2.5"
				Dir="(0;0; 1)"
				DirAngle="100"
				Pos="(-1.489; 1.287;  1.128)"
				Size="0.6"
			/>
			<Flare
				Color="g(117; 72; 72) x 2.5"
				Dir="(0;0;-1)"
				DirAngle="100"
				Pos="(-1.489; 1.287; -1.128)"
				Size="0.6"
			/>
			<Flare
				Color="g(117; 72; 72) x 2.5"
				Dir="(0;0; 1)"
				DirAngle="100"
				Pos="( 1.632; 1.420;  1.200)"
				Size="0.6"
			/>
			<Flare
				Color="g(117; 72; 72) x 2.5"
				Dir="(0;0;-1)"
				DirAngle="100"
				Pos="( 1.632; 1.420; -1.200)"
				Size="0.6"
			/>
			<Flare
				Color="g(117; 72; 72) x 2.5"
				Dir="(0;0; 1)"
				DirAngle="100"
				Pos="( 4.414; 1.416;  1.200)"
				Size="0.6"
			/>
			<Flare
				Color="g(117; 72; 72) x 2.5"
				Dir="(0;0;-1)"
				DirAngle="100"
				Pos="( 4.414; 1.416; -1.200)"
				Size="0.6"
			/>
			<Flare
				Color="g(169; 0; 0)"
				Dir="(-1;0;0)"
				DirAngle="90"
				Pos="(-4.205; 1.145;  0.91)"
				Size="0.6"
			/>
			<Flare
				Color="g(169; 0; 0)"
				Dir="(-1;0;0)"
				DirAngle="90"
				Pos="(-4.205; 1.145; -0.91)"
				Size="0.6"
			/>
			<Flare
				Color="g(255; 255; 255) x 0.5"
				Dir="(1;0;0)"
				DirAngle="90"
				Pos="(4.474; 1.418;  1.134)"
				Size="0.15"
				SizeAtDay="0.15"
			/>
			<Flare
				Color="g(255; 255; 255) x 0.5"
				Dir="(1;0;0)"
				DirAngle="90"
				Pos="(4.474; 1.418; -1.134)"
				Size="0.15"
				SizeAtDay="0.15"
			/>
		</Ignition>
	</ModelAttachments>
	<GameData>
		<WinchSocket Pos="(-4.553; 0.570;  0.444)" />
		<WinchSocket Pos="(-4.553; 0.570; -0.444)" />
		<RequiredAddon Types="kraz_tractor" />
<LoadArea
			Min="(4.2; 1.5; -1.12)"
			Max="(-4.4; 2.5; 1.12)"
			TrailerLoad="true"
			Type="ShortLogs"
			ParentFrame="Kuz_cdt"
		/>
		<LoadArea
			Min="(4.2; 1.5; -1.12)"
			Max="(-4.4; 2.5; 1.12)"
			TrailerLoad="true"
			Type="MediumLogs"
			ParentFrame="Kuz_cdt"
		/>
		<InstallSocket Offset="(3.292; 1.0; 0.0)" Type="Kamaz Tonar4310" />
		<AddonSockets>
			<Socket Names="Gravel 4310" ParentFrame="Kuz_cdt" />
		</AddonSockets>
	</GameData>
	<ControlledConstraints>
		<Constraint Id="samosval" Name="Kuzov" />
	</ControlledConstraints>
	<AutomaticIK>
		<IKBone ModelFrame="arm4" ParentFrame="Bone_cdt">
			<IKJoint AxisLocal="(0;0;1)" Type="Hinge" />
			<IKBone
				AttachOffset="(0; 0.0; 0)"
				AttachToFrame="arm3"
				ModelFrame="arm31"
				ParentFrame="arm4"
			>
				<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
				<IKBone
					AttachOffset="(0; 0.0; 0)"
					AttachToFrame="arm2"
					ModelFrame="arm3"
					ParentFrame="arm31"
				>
					<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
					<IKBone
						AttachOffset="(0; 0.0; 0)"
						AttachToFrame="arm2"
						ModelFrame="arm2"
						ParentFrame="arm3"
					>
						<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
						<IKBone
							AttachOffset="(0; 0.0; 0)"
							AttachToFrame="Kuz_cdt"
							ModelFrame="arm"
							ParentFrame="arm2"
						>
							<IKJoint AxisLocal="(0;1;0)" Type="Slider" />
						</IKBone>
					</IKBone>
				</IKBone>
			</IKBone>
		</IKBone>
	</AutomaticIK>
</Truck>
