<?xml version="1.0"?>
<_templates Include="trucks">
	<Wheel>
		<Wheel
			DefaultWheelType="kraz_wheel_double"
			SteeringAngle="0"
			Torque="default"
			ParentFrame="BoneFrame2_cdt"
		>
			<Suspension
				MinLimit="-0.4"
				Strength="0.025"
				HardpointOffset="-0.2"
			/>
		</Wheel>
	</Wheel>
</_templates>
<Truck>
	<GameData CanDetach="false">
		<RequiredAddon Type="kraz_cart" />
		<InstallSocket Type="KrazCartTrailer" Offset="(-2.33; 1.3; 0.0)" />
		<LoadArea
			Type="LongLogs"
			Min="(-12.1; 1.15; -1.12)"
			Max="(-9.34; 2.2; 1.12)"
			ParentFrame="BoneFrame2_cdt"
		/>
		<WinchSocket ParentFrame="BoneFrame2_cdt" Offset="(-11.265; 1.0; 0)" />
	</GameData>
	<TruckData>
		<Camera Center="(-10.87; 0; 0)" ParentFrame="BoneFrame2_cdt" />
		<Axles>
			<Axle
				Frame="BoneAxle2"
				LeftWheel="0"
				RightWheel="1"
			/>
			<Axle
				Frame="BoneAxle1"
				LeftWheel="2"
				RightWheel="3"
			/>
		</Axles>
		<OcclusionMap
			Texture="occlusion/chassis__da_uncmp.tga"
			Size="(2.4; 3.0)"
			Offset="-10.87"
			ParentFrame="BoneFrame2_cdt"
		/>
		<TrailerConstraint
			Name="ExtensionBase"
			Type="Hinge"
			Axis="(0;0;1)"
			MinLimit="-180"
			MaxLimit="0"
		>
			<Motor Type="Position" Force="36000" />
		</TrailerConstraint>
	</TruckData>
	<PhysicsModel Mesh="trailer_kraz_cart.xml">
		<Body
			ModelFrame="BoneRoot_cdt"
			Mass="100"
			Collisions="None"
		>
			<Body
				ModelFrame="BoneFrame1_cdt"
				Mass="100"
				ImpactType="Truck"
			>
				<Constraint
					Type="Hinge"
					Axis="(1;0;0)"
					MinLimit="-90"
					MaxLimit="90"
				>
					<Motor Type="Position" Force="12000" />
				</Constraint>
				<Body
					ModelFrame="BoneFrame2_cdt"
					Mass="800"
					ImpactType="Truck"
				>
					<Constraint
						Name="ExtensionArm"
						Type="Hinge"
						Axis="(0;0;1)"
						MinLimit="0"
						MaxLimit="171"
					>
						<Motor Type="Position" Force="16000" />
					</Constraint>
					<Body ModelFrame="BoneFork_cdt" _template="CartForkBase">
						<Body ModelFrame="BoneForkLeft_cdt" _template="CartFork">
							<Constraint Axis="(-1;0;0)" />
						</Body>
						<Body ModelFrame="BoneForkRight_cdt" _template="CartFork" />
					</Body>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<PoweredConstraints>
		<cart_pack>
			<Constraint
				Name="ExtensionBase"
				Position="-156"
				InitialFree="true"
			/>
			<Constraint
				Name="ExtensionRotation"
				Position="0"
				InitialFree="true"
			/>
			<Constraint
				Name="ExtensionArm"
				Position="171"
				InitialFree="true"
			/>
		</cart_pack>
	</PoweredConstraints>
	<ModelAttachments>
		<Ignition>
			<Flare
				_template="RedSignal"
				Offset="(-11.27; 1.24; 0.5)"
				ParentFrame="BoneFrame2_cdt"
			/>
			<Flare
				_template="RedSignal"
				Offset="(-11.27; 1.24; -0.5)"
				ParentFrame="BoneFrame2_cdt"
			/>
		</Ignition>
		<StopSignals>
			<Flare
				_template="StopSignal"
				Offset="(-11.27; 1.24; 0.5)"
				ParentFrame="BoneFrame2_cdt"
			/>
			<Flare
				_template="StopSignal"
				Offset="(-11.27; 1.24; -0.5)"
				ParentFrame="BoneFrame2_cdt"
			/>
			<Light
				_template="StopSignal"
				Offset="(-11.07; 1.24; 0)"
				ParentFrame="BoneFrame2_cdt"
			/>
		</StopSignals>
	</ModelAttachments>
	<Wheels>
		<Wheel _template="Wheel">
			<Suspension Hardpoint="(-11.474; 0.537; 1.0)" />
		</Wheel>
		<Wheel _template="Wheel">
			<Suspension Hardpoint="(-11.474; 0.537; -1.0)" />
		</Wheel>
		<Wheel _template="Wheel">
			<Suspension Hardpoint="(-10.285; 0.537; 1.0)" />
		</Wheel>
		<Wheel _template="Wheel">
			<Suspension Hardpoint="(-10.285; 0.537; -1.0)" />
		</Wheel>
	</Wheels>
</Truck>
