<_templates Include="trucks">
	<Wheel>
		<TrailerWheel
			Type="zil_trailer"
			HardpointOffsetY="-0.2"
			SuspensionMin="-0.35"
			SuspensionMax="0.35"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.541"
		HardpointDefaultZ="1.023"
	>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-9.213"
			SuspensionStrength="0.016"
			ParentFrame="BoneRear"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-9.213"
			RightSide="true"
			SuspensionStrength="0.016"
			ParentFrame="BoneRear"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-6.246"
			SuspensionStrength="0.026"
			ParentFrame="BoneFrontCart"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-6.246"
			RightSide="true"
			SuspensionStrength="0.026"
			ParentFrame="BoneFrontCart"
		/>
	</Wheels>
	<TruckData>
		<OcclusionMap
			HalfSizeZ="1.3"
			MinX="-10.051"
			MaxX="-5.617"
			ParentFrame="BoneRear"
		/>
		<Constraint _template="TrailerRagdoll" />
		<Camera Center="(-8.0; 0; 0)" ParentFrame="BoneFront" />
		<Axles>
			<Axle Frame="BoneAxle1" LeftWheel="0" RightWheel="1" />
			<Axle Frame="BoneAxle2" LeftWheel="2" RightWheel="3" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/zil157_trailer_tent">
		<Body ImpactType="Truck" Mass="500" ModelFrame="BoneFront">
				<Body
					AngularDamping="2.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneBortFR"
				>
					<Constraint
						AxisLocal="(1.0; 0.0; 0.0)"
						MinLimit="-5"
						MaxLimit="1"
						Type="Hinge"
					/>
				</Body>
				<Body
					AngularDamping="1.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneBortFL"
				>
					<Constraint
						AxisLocal="(1.0; 0.0; 0.0)"
						MinLimit="-10"
						MaxLimit="3"
						Type="Hinge"
					/>
				</Body>
			<Body ImpactType="Truck" Mass="1600" 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="5"
						Type="Hinge"
					/>
				</Body>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneMudguardRL"
				>
					<Constraint
						AxisLocal="(0.0; 0.0; 1.0)"
						MinLimit="-35"
						MaxLimit="5"
						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 Mass="600" ModelFrame="BoneFrontCart">
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-50"
					MaxLimit="50"
					Type="Hinge"
				/>
				<Body ForceBodyParams="true" Mass="400" ModelFrame="BoneHandle">
					<Constraint
						AxisLocal="(0;0;1)"
						MinLimit="-60"
						MaxLimit="60"
						Type="Hinge"
					/>
				</Body>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneMudguardFL"
				>
					<Constraint
						AxisLocal="(0.0; 0.0; 1.0)"
						MinLimit="-25"
						MaxLimit="25"
						Type="Hinge"
					/>
				</Body>
				<Body
					AngularDamping="3.0"
					Collisions="None"
					Mass="10"
					ModelFrame="BoneMudguardFR"
				>
					<Constraint
						AxisLocal="(0.0; 0.0; 1.0)"
						MinLimit="-25"
						MaxLimit="25"
						Type="Hinge"
					/>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-9.882; 0.993; 0)" ParentFrame="BoneRear" />
			<Flare _template="StopSignal" Pos="(-9.882; 0.993; 0.967)" ParentFrame="BoneRear" />
			<Flare _template="StopSignal" Pos="(-9.882; 0.993; -0.967)" ParentFrame="BoneRear" />
		</StopSignals>
		<Ignition>
			<Flare _template="IgnitionSignalRed" Pos="(-9.882; 0.993; 0.967)" ParentFrame="BoneRear" />
			<Flare _template="IgnitionSignalRed" Pos="(-9.882; 0.993; -0.967)" ParentFrame="BoneRear" />
		</Ignition>
	</ModelAttachments>
	<GameData GaragePoints="2">
		<WinchSocket Pos="(-9.852; 0.885; 0.65)" ParentFrame="BoneRear" />
		<WinchSocket Pos="(-9.852; 0.885; -0.65)" ParentFrame="BoneRear" />
		<WinchSocket Pos="(-3.515; 0.883; 0.017)" ParentFrame="BoneHandle" />
		<RequiredAddon _template="RequiresDollyHitch" />
		<InstallSocket Offset="(-3.47493; 0.883; 0.017)" Type="zil157_trailer_cart" ParentFrame="BoneHandle" />
	</GameData>
</Truck>
