<_templates Include="trucks">
	<Wheel>
		<TrailerWheel
			HardpointOffsetY="-0.08"
			SuspensionMin="-0.3"
			SuspensionStrength="0.02"
			Type="ural_wide_rear"
			ParentFrame="BoneRear_cdt"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.564"
		HardpointDefaultZ="0.98"
	>
		<Wheel _template="TrailerWheel" HardpointX="-5.528" />
		<Wheel _template="TrailerWheel" HardpointX="-5.528" RightSide="true" />
		<Wheel _template="TrailerWheel" HardpointX="-6.88" />
		<Wheel _template="TrailerWheel" HardpointX="-6.88" RightSide="true" />
	</Wheels>
	<TruckData>
		<OcclusionMap
			HalfSizeZ="1.75"
			MinX="-7.95"
			MaxX="-0.5"
			Texture="trucks/occlusion/chassis_trailer__s_d_a.tga"
		/>
		<Constraint _template="TrailerRagdoll" />
		<Camera Center="(-6.0; 0; 0)" />
		<Axles>
			<Axle Frame="BoneAxle0" />
			<Axle Frame="BoneAxle1" />
		</Axles>
	</TruckData>
	<PoweredConstraints>
		<Group Id="_trailer_foot">
			<Constraint Name="Foot" Position="0.4" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<PhysicsModel Mesh="trucks/trailer_tent">
		<Body
			CenterOfMassOffset="(-2.0; 0; 0)"
			ImpactType="Truck"
			Mass="4000"
			ModelFrame="BoneFront_cdt"
		>
			<Body ImpactType="Truck" Mass="2500" ModelFrame="BoneRear_cdt">
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-15"
					MaxLimit="15"
					PivotOffset="(2.304; -0.117; 0.0)"
					Type="Hinge"
				>
					<Motor Damping="40000" Spring="200000" Type="Spring" />
				</Constraint>
			</Body>
			<Body
				ForceBodyParams="true"
				Mass="100"
				ModelFrame="BoneFoot_cdt"
				NoFoliageCollisions="true"
			>
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="0"
					MaxLimit="0.4"
					Name="Foot"
					Type="Prismatic"
				>
					<Motor Force="64000" Type="Position" />
				</Constraint>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-7.471; 1.452; 0)" ParentFrame="BoneRear_cdt" />
			<Flare _template="StopSignal" Pos="(-7.671; 1.252; 0.965)" ParentFrame="BoneRear_cdt" />
			<Flare _template="StopSignal" Pos="(-7.671; 1.252; -0.965)" ParentFrame="BoneRear_cdt" />
		</StopSignals>
		<Ignition>
			<Light _template="IgnitionSignalRed" Pos="(-7.471; 1.452; 0)" ParentFrame="BoneRear_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-7.671; 1.252; 0.965)" ParentFrame="BoneRear_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-7.671; 1.252; -0.965)" ParentFrame="BoneRear_cdt" />
		</Ignition>
	</ModelAttachments>
	<GameData GaragePoints="4">
		<WinchSocket Pos="(-7.64; 0.653; 0.723)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(-7.64; 0.653; -0.723)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(-1.5264; 1.427; 0)" ParentFrame="BoneFront_cdt" />
		<WinchSocket Pos="(-2.49; 1.456; -1.209)" ParentFrame="BoneFront_cdt" />
		<WinchSocket Pos="(-2.49; 1.456; 1.209)" ParentFrame="BoneFront_cdt" />
		<RequiredAddon Types="maz_tractor,kraz_tractor" />
		<InstallSocket Offset="(0.5; 1.2; 0.0)" Type="KamazTrailer" />
	</GameData>
</Truck>
