<_templates Include="trucks">
	<Wheel>
		<TrailerWheel
			Type="zil157_rear"
			HardpointOffsetY="-0.2"
			SuspensionMin="-0.35"
			SuspensionMax="0.35"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.739"
		HardpointDefaultZ="1.036"
	>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-5.332"
			SuspensionStrength="0.016"
			ParentFrame="BoneRear"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-5.332"
			RightSide="true"
			SuspensionStrength="0.016"
			ParentFrame="BoneRear"
		/>
	</Wheels>
	<TruckData>
		<OcclusionMap
			HalfSizeZ="1.4"
			MinX="-7.02"
			MaxX="1.32"
			ParentFrame="BoneRear"
		/>
		<Constraint _template="TrailerRagdoll" />
		<Camera Center="(-8.0; 0; 0)" ParentFrame="BoneFront" />
		<Axles>
			<Axle Frame="BoneAxle1" LeftWheel="0" RightWheel="1" />
		</Axles>
	</TruckData>
	<PoweredConstraints>
		<Group Id="foot_push">
			<Constraint Name="Foot" Position="-80" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<PhysicsModel Mesh="trucks/trailer_5245_flatbed">
		<Body ImpactType="Truck" Mass="700" ModelFrame="BoneFront">
			<Body
				ForceBodyParams="true"
				Mass="100"
				ModelFrame="BoneFoot"
				NoFoliageCollisions="true"
			>
				<Constraint
					AxisLocal="(0;0;-1)"
					MinLimit="-80"
					MaxLimit="0"
					Name="Foot"
					Type="Hinge"
				>
					<Motor Force="16000" Type="Position" />
				</Constraint>
			</Body>
			<Body ImpactType="Truck" Mass="2000" ModelFrame="BoneRear">
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-15"
					MaxLimit="15"
					Type="Hinge"
				>
					<Motor Damping="32000" Spring="120000" Type="Spring" />
				</Constraint>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneMudguardRR"
				>
					<Constraint
						AxisLocal="(0.0; 0.0; 1.0)"
						MinLimit="-35"
						MaxLimit="35"
						Type="Hinge"
					/>
				</Body>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneMudguardRL"
				>
					<Constraint
						AxisLocal="(0.0; 0.0; 1.0)"
						MinLimit="-35"
						MaxLimit="35"
						Type="Hinge"
					/>
				</Body>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneBortRR"
				>
					<Constraint
						AxisLocal="(1.0; 0.0; 0.0)"
						MinLimit="-35"
						MaxLimit="15"
						Type="Hinge"
					/>
				</Body>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneBortRL"
				>
					<Constraint
						AxisLocal="(1.0; 0.0; 0.0)"
						MinLimit="-35"
						MaxLimit="15"
						Type="Hinge"
					/>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-6.874; 1.267; 0)" ParentFrame="BoneRear" />
			<Flare _template="StopSignal" Pos="(-6.874; 1.267; 0.9)" ParentFrame="BoneRear" />
			<Flare _template="StopSignal" Pos="(-6.874; 1.267; -0.9)" ParentFrame="BoneRear" />
		</StopSignals>
		<Ignition>
			<Flare _template="IgnitionSignalRed" Pos="(-6.874; 1.267; 0.9)" ParentFrame="BoneRear" />
			<Flare _template="IgnitionSignalRed" Pos="(-6.874; 1.267; -0.9)" ParentFrame="BoneRear" />
		</Ignition>
	</ModelAttachments>
	<GameData>
		<WinchSocket Pos="(-6.906; 1.267; 0.625)" ParentFrame="BoneRear" />
		<WinchSocket Pos="(-6.906; 1.267; -0.625)" ParentFrame="BoneRear" />
		<WinchSocket Pos="(0.165; 1.322; 0)" ParentFrame="BoneFront" />
		<RequiredAddon Types="zil157_tractor" />
		<LoadArea Min="(-6.651; 1.58; -1.36)" Max="(-2.903; 2.823; 1.36)" Type="MediumLogs" ParentFrame="BoneRear" TrailerLoad="true" />
		<LoadArea Min="(-2.679; 1.58; -1.36)" Max="(1.064; 2.823; 1.36)" Type="MediumLogs" ParentFrame="BoneFront" TrailerLoad="true" />
		<InstallSocket Offset="(0.17; 1.25; 0.0)" Type="zil157_trailer" />
		<AddonSockets>
			<Socket Names="LoadLogsMediumBort" Offset="(0.1; 0.4; 0)" />
		</AddonSockets>
	</GameData>
</Truck>
