<_templates Include="trucks">
	<Wheel>
		<Wheel
			Type="kraz_double_highwayR_xam"
			HardpointOffsetY="-0.2"
			SuspensionMin="-0.4"
			SuspensionStrength="0.025"
			Torque="default"
			ParentFrame="BoneFrame2_cdt"
		/>
	</Wheel>
	<Flare>
		<RedSignal
			Color="g(169; 0; 0)"
			Dir="(-1;0;0)"
			DirAngle="90"
			Size="0.6"
		/>
	</Flare>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.537"
		HardpointDefaultZ="1.0"
	>
		<Wheel _template="Wheel" HardpointX="-11.474" />
		<Wheel _template="Wheel" HardpointX="-11.474" RightSide="true" />
		<Wheel _template="Wheel" HardpointX="-10.285" />
		<Wheel _template="Wheel" HardpointX="-10.285" RightSide="true" />
	</Wheels>
	<TruckData TrailerCanDetach="false">
		<OcclusionMap
			HalfSizeZ="1.50"
			MinX="-12.07"
			MaxX="-9.67"
			ParentFrame="BoneFrame2_cdt"
		/>
		<Constraint
			AxisLocal="(0;0;1)"
			MinLimit="-153"
			MaxLimit="100"
			Name="CartBase"
			Type="Hinge"
		>
			<Motor Force="36000" Tau="0.2" Type="Position" />
		</Constraint>
		<Camera
			Center="(-8.87; 0; 0)"
			ParentFrame="BoneFrame2_cdt"
			RadiusMultiplier="1.5"
		/>
		<Axles>
			<Axle Frame="BoneAxle2" LeftWheel="0" RightWheel="1" />
			<Axle Frame="BoneAxle1" LeftWheel="2" RightWheel="3" />
		</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/krazrospuskxam">
		<Body Collisions="None" Mass="100" 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="76000" Tau="0.2" Type="Position" />
					</Constraint>
					<Body _template="CartForkBase" ModelFrame="BoneFork_cdt">
						<Body _template="CartFork" ModelFrame="BoneForkLeft_cdt">
							<Constraint AxisLocal="(-1;0;0)" />
						</Body>
						<Body _template="CartFork" ModelFrame="BoneForkRight_cdt" />
					</Body>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-11.07; 1.24; 0)" ParentFrame="BoneFrame2_cdt" />
			<Flare _template="StopSignal" Pos="(-11.27; 1.24; 0.5)" ParentFrame="BoneFrame2_cdt" />
			<Flare _template="StopSignal" Pos="(-11.27; 1.24; -0.5)" ParentFrame="BoneFrame2_cdt" />
		</StopSignals>
		<Ignition>
			<Flare _template="RedSignal" Pos="(-11.27; 1.24; 0.5)" ParentFrame="BoneFrame2_cdt" />
			<Flare _template="RedSignal" Pos="(-11.27; 1.24; -0.5)" ParentFrame="BoneFrame2_cdt" />
		</Ignition>
	</ModelAttachments>
	<GameData>
		<WinchSocket Pos="(-11.265; 1.0; 0)" ParentFrame="BoneFrame2_cdt" />
		<WinchSocket Pos="(-2.642; 1.185; 0)" ParentFrame="BoneFrame1_cdt" />
		<RequiredAddon Types="kraz_cart" />
		<LoadArea
			Min="(-11.8; 0; -3.5)"
			Max="(-7.463; 2.300; 3.5)"
			Type="LongLogs"
			ParentFrame="BoneFrame2_cdt"
		/>
		<InstallSocket Offset="(-2.33; 1.3; 0.0)" Type="KrazCartTrailer_xam" />
	</GameData>
</Truck>
