<_templates Include="trucks"/>
<Truck>
	<Wheels
		HardpointDefaultY="0.537"
		HardpointDefaultZ="0.95"
	>
		<Wheel
			HardpointX="-10.54"
			HardpointOffsetY="-0.2"
			SuspensionMin="-0.4"
			SuspensionStrength="0.025"
			Type="zil157_rear"
			ParentFrame="BoneFrame2_cdt"
		/>
		<Wheel
			HardpointX="-10.54"
			RightSide="true"
			HardpointOffsetY="-0.2"
			SuspensionMin="-0.4"
			SuspensionStrength="0.025"
			Type="zil157_rear"
			ParentFrame="BoneFrame2_cdt"
		/>
		<Wheel
			HardpointX="-11.713"
			HardpointOffsetY="-0.2"
			SuspensionMin="-0.4"
			SuspensionStrength="0.025"
			Torque="default"
			Type="zil157_rear"
			ParentFrame="BoneFrame2_cdt"
		/>
		<Wheel
			HardpointX="-11.713"
			RightSide="true"
			HardpointOffsetY="-0.2"
			SuspensionMin="-0.4"
			SuspensionStrength="0.025"
			Torque="default"
			Type="zil157_rear"
			ParentFrame="BoneFrame2_cdt"
		/>
	</Wheels>
	<TruckData TrailerCanDetach="false">
		<OcclusionMap
			HalfSizeZ="1.50"
			MinX="-12.07"
			MaxX="-9.67"
			ParentFrame="BoneFrame2_cdt"
		/>
		<Constraint
			AxisLocal="(0;0;1)"
			MinLimit="-180"
			MaxLimit="0"
			Name="CartBase"
			Type="Hinge"
		>
			<Motor Force="36000" Tau="0.2" Type="Position" />
		</Constraint>
		<Camera Center="(-10.2; 0; 0)" ParentFrame="BoneFrame2_cdt" />
		<Axles>
			<Axle Frame="BoneAxle0" />
			<Axle Frame="BoneAxle1" />
		</Axles>
	</TruckData>
	<PoweredConstraints>
		<Group Id="cart_pack" TerminalDisableWinchSockets="true">
			<Constraint InitialFree="true" Name="CartBase" Position="-156" />
			<Constraint InitialFree="true" Name="CartRotation" Position="0" />
			<Constraint InitialFree="true" Name="CartArm" Position="171" />
		</Group>
	</PoweredConstraints>
	<PhysicsModel Mesh="trucks/zil157_log_platform_trailer">
		<Body Collisions="None" Mass="1200" ModelFrame="BoneRoot_cdt">
			<Body ImpactType="Truck" Mass="100" ModelFrame="BoneFrame1_cdt">
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-90"
					MaxLimit="90"
					Name="CartRotation"
					Type="Hinge"
				>
					<Motor Force="12000" Tau="0.2" Type="Position" />
				</Constraint>
				<Body ImpactType="Truck" Mass="800" ModelFrame="BoneFrame2_cdt">
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="0"
						MaxLimit="171"
						Name="CartArm"
						Type="Hinge"
					>
						<Motor Force="45000" Tau="0.1" Type="Position" />
					</Constraint>
					<Body
						ModelFrame="BoneFork_cdt"
						Friction="2.0"
						ImpactType="Truck"
						Mass="100"
					>
						<Body
							ModelFrame="BoneForkLeft_cdt"
							CenterOfMassOffset="(0; -0.8; 0)"
							ImpactType="Truck"
							Mass="50"
						>
							<Constraint
								AxisLocal="(-1;0;0)"
								MinLimit="-1"
								MaxLimit="10"
								Type="Hinge"
							>
								<Motor Damping="200" Spring="4000" Type="Spring" />
							</Constraint>
						</Body>
						<Body
							ModelFrame="BoneForkRight_cdt"
							CenterOfMassOffset="(0; -0.8; 0)"
							ImpactType="Truck"
							Mass="50"
						>
							<Constraint
								AxisLocal="(1;0;0)"
								MinLimit="-1"
								MaxLimit="10"
								Type="Hinge"
							>
								<Motor Damping="200" Spring="4000" Type="Spring" />
							</Constraint>
						</Body>
						<Constraint
							AxisLocal="(0;1;0)"
							MinLimit="-120"
							MaxLimit="120"
							Type="Hinge"
						>
							<Motor Damping="500" Spring="1000" Type="Spring" />
						</Constraint>
					</Body>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light
				Pos="(-11.497; 1.24; 0)"
				ParentFrame="BoneFrame2_cdt"
				AttenEnd="2.0"
				Color="(102; 1; 1) x 4"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
			/>
			<Flare
				Pos="(-11.497; 1.1; 0.5)"
				ParentFrame="BoneFrame2_cdt"
				AspectRatio="1.4"
				Color="g(255; 0; 0) x 0.4"
				ColorMultAtDay="0.6"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Reflections="true"
				Size="1.8"
			/>
			<Flare
				Pos="(-11.497; 1.1; -0.5)"
				ParentFrame="BoneFrame2_cdt"
				AspectRatio="1.4"
				Color="g(255; 0; 0) x 0.4"
				ColorMultAtDay="0.6"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Reflections="true"
				Size="1.8"
			/>
		</StopSignals>
		<Ignition>
			<Light
				Pos="(-11.497; 1.24; 0)"
				ParentFrame="BoneFrame2_cdt"
				AttenEnd="1.0"
				Color="(102; 0; 0) x 0.8"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="180"
			/>
			<Flare
				Pos="(-11.497; 1.1; 0.5)"
				ParentFrame="BoneFrame2_cdt"
				AspectRatio="1.4"
				Color="g(169; 0; 0) x 0.8"
				Dir="(-1;0;0)"
				DirAngle="90"
				Size="0.5"
			/>
			<Flare
				Pos="(-11.497; 1.1; -0.5)"
				ParentFrame="BoneFrame2_cdt"
				AspectRatio="1.4"
				Color="g(169; 0; 0) x 0.8"
				Dir="(-1;0;0)"
				DirAngle="90"
				Size="0.5"
			/>
		</Ignition>
	</ModelAttachments>
	<GameData>
		<WinchSocket Pos="(-11.689; 0.971; 0)" ParentFrame="BoneFrame2_cdt" />
		<RequiredAddon Types="zil157_log_platform" />
		<LoadArea
			Min="(-11.8; 1.35; -1.12)"
			Max="(-9.339; 2.384; 1.12)"
			Type="LongLogs"
			ParentFrame="BoneFrame2_cdt"
		/>
		<InstallSocket Offset="(-2.621; 1.175; 0)" Type="zil157_trailer_logs" />
	</GameData>
</Truck>
