<_templates Include="trucks">
	<Wheel>
		<TrailerWheel
			Type="kraz_double_cart"
			HardpointOffsetY="-0.12"
			SuspensionMin="-0.3"
			SuspensionStrength="0.015"
			Torque="default"
			ParentFrame="BoneRear_cdt"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.544"
		HardpointDefaultZ="0.80"
	>
		<Wheel _template="TrailerWheel" HardpointX="-7.65" />
		<Wheel _template="TrailerWheel" HardpointX="-7.65" RightSide="true" />
		<Wheel _template="TrailerWheel" HardpointX="-8.924" />
		<Wheel _template="TrailerWheel" HardpointX="-8.924" RightSide="true" />
		<Wheel _template="TrailerWheel" HardpointX="-10.182" />
		<Wheel _template="TrailerWheel" HardpointX="-10.182" RightSide="true" />
	</Wheels>
	<TruckData>
		<OcclusionMap HalfSizeZ="1.75" MinX="-11.75" MaxX="0.75" />
		<Constraint _template="TrailerRagdoll" />
		<Camera Center="(-9.5; 0; 0)" />
		<Axles>
			<Axle Frame="BoneAxle0" LeftWheel="0" RightWheel="1" />
			<Axle Frame="BoneAxle1" LeftWheel="2" RightWheel="3" />
			<Axle Frame="BoneAxle2" LeftWheel="4" RightWheel="5" />
		</Axles>
	</TruckData>
	<PoweredConstraints>
		<Group Id="foot_push">
			<Constraint Name="Foot" Position="-0.6" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<PhysicsModel Mesh="trucks/trailer_cementovoz">
		<Body
			CenterOfMassOffset="(-1.5; 0; 0)"
			ImpactType="Truck"
			Mass="3000"
			ModelFrame="BoneFront"
		>
			<Body ImpactType="Truck" Mass="3000" ModelFrame="BoneRear_cdt">
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-15"
					MaxLimit="15"
					PivotOffset="(3.09537; 0.316711; 0.0)"
					Type="Hinge"
				>
					<Motor Damping="40000" Spring="240000" Type="Spring" />
				</Constraint>
				<Body Mass="400" ModelFrame="BoneRearTop_cdt">
					<Constraint
						AxisLocal="(0; 0; 1)"
						MinLimit="-0.25"
						MaxLimit="0.25"
						Type="Prismatic"
					>
						<Motor Damping="800" Spring="24000" Type="Spring" />
					</Constraint>
				</Body>
			</Body>
			<Body Mass="400" ModelFrame="BoneFrontTop_cdt">
				<Constraint
					AxisLocal="(0; 0; 1)"
					MinLimit="-0.25"
					MaxLimit="0.25"
					Type="Prismatic"
				>
					<Motor Damping="800" Spring="24000" Type="Spring" />
				</Constraint>
			</Body>
			<Body
				ForceBodyParams="true"
				Mass="100"
				ModelFrame="BoneFoot"
				NoFoliageCollisions="true"
			>
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-0.48"
					MaxLimit="0"
					Name="Foot"
					Type="Prismatic"
				>
					<Motor Force="32000" Type="Position" />
				</Constraint>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light _template="StopSignal" Pos="(-10.7; 1.065; 0)" ParentFrame="BoneRear_cdt" />
			<Flare _template="StopSignal" Pos="(-11.097; 0.865; 0.938)" ParentFrame="BoneRear_cdt" />
			<Flare _template="StopSignal" Pos="(-11.097; 0.865; -0.938)" ParentFrame="BoneRear_cdt" />
		</StopSignals>
		<ReverseSignals>
			<Light _template="ReverseSignal" Pos="(-10.7; 1.065; 0)" ParentFrame="BoneRear_cdt" />
			<Flare _template="ReverseSignal" Pos="(-11.097; 0.865; 0.752)" ParentFrame="BoneRear_cdt" />
			<Flare _template="ReverseSignal" Pos="(-11.097; 0.865; -0.752)" ParentFrame="BoneRear_cdt" />
		</ReverseSignals>
		<Ignition>
			<Flare _template="IgnitionSignalRed" Pos="(-11.097; 0.865; 0.938)" ParentFrame="BoneRear_cdt" />
			<Flare _template="IgnitionSignalRed" Pos="(-11.097; 0.865; -0.938)" ParentFrame="BoneRear_cdt" />
		</Ignition>
	</ModelAttachments>
	<GameData GaragePoints="4" RepairsCapacity="150">
		<WinchSocket Pos="(-11.05; 0.868; -0.6)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(-11.05; 0.868; 0.6)" ParentFrame="BoneRear_cdt" />
		<WinchSocket Pos="(-2.38; 1.313; 0)" ParentFrame="BoneFront" />
		<RequiredAddon Types="kraz_tractor" />
		<InstallSocket Offset="(0.5; 1.05; 0.0)" Type="KamazTrailer" />
	</GameData>
</Truck>
