<_templates Include="trucks">
	<Wheel>
		<TrailerWheel
			Type="mercedes_actros_treler_wheel"
			SuspensionMin="-0.1"
			SuspensionStrength="0.02"
			Torque="default"
			ParentFrame="DvigPlatforv_cdt"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.559"
		HardpointDefaultZ="0.9"
	>
		<Wheel _template="TrailerWheel" HardpointX="-10.601" />
		<Wheel _template="TrailerWheel" HardpointX="-10.601" RightSide="true" />
		<Wheel _template="TrailerWheel" HardpointX="-11.55" />
		<Wheel _template="TrailerWheel" HardpointX="-11.55" RightSide="true" />
		<Wheel _template="TrailerWheel" HardpointX="-12.502" />
		<Wheel _template="TrailerWheel" HardpointX="-12.502" RightSide="true" />
	</Wheels>
	<TruckData FuelCapacity="800" RepairsCapacity="600">
		<OcclusionMap HalfSizeZ="1.422" MinX="-13.822" MaxX="-2.596" />
		<Constraint _template="TrailerRagdoll" />
		<Camera Center="(-8.305; 0; 0)" />
		<Axles>
			<Axle Frame="BoneAxle0"  />
			<Axle Frame="BoneAxle1" />
			<Axle Frame="BoneAxle2" />
		</Axles>
	</TruckData>
	<PoweredConstraints>
		<Group Id="_trailer_foot">
			<Constraint Name="Foot" Position="0.5" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<ControlledConstraints>
		<Constraint Id="Trap_R-T" Name="Crane" />
		<Constraint Id="GlavnayaPlatforma_R-T" Name="DvigPlatforv" />
		<Constraint Id="PlatformaR_R-T" Name="PlatformaR" />
	</ControlledConstraints>
	<PhysicsModel Mesh="trucks/mercedes_actros_trailer_addons">
		<Body
			ModelFrame="BoneFront_cdt"
			Mass="1500"
			ImpactType="Truck"
			CenterOfMassOffset="(-2.0; 0; 0)"
		>
			<Body
			ForceBodyParams="true"
				ModelFrame="BoneFoot_cdt"
				Mass="200"
				NoFoliageCollisions="true"
			>
				<Constraint
					Name="Foot"
					Type="Prismatic"
					AxisLocal="(0;1;0)"
					MinLimit="0"
					MaxLimit="0.6"
				>
					<Motor Type="Position" Force="25000" />
				</Constraint>
			</Body>
			<Body
				ModelFrame="DvigPlatforv_cdt"
				Mass="2000"
				NoFoliageCollisions="true"
			>
				<Constraint
					Name="DvigPlatforv"
					Type="Prismatic"
					AxisLocal="(-1; 0; 0)"
					MinLimit="0"
					MaxLimit="0.520"
				>
					<Motor Type="Position" Force="100000" />
				</Constraint>
				<Body ModelFrame="BoneLap_cdt" Mass="500">
					<Constraint
						Name="Crane"
						Type="Hinge"
						AxisLocal="(0;0;1)"
						MinLimit="-0"
						MaxLimit="115"
					>
						<Motor Type="Position" Force="30000" />
					</Constraint>
				</Body>
				<Body
					ModelFrame="PlatformaR_cdt"
					Mass="500"
					NoFoliageCollisions="true"
				>
					<Constraint
						Name="PlatformaR"
						Type="Prismatic"
						AxisLocal="(0; 0; -1)"
						MinLimit="0"
						MaxLimit="0.337"
					>
						<Motor Type="Position" Force="50000" />
					</Constraint>
				</Body>
				<Body
					ModelFrame="PlatformaL_cdt"
					Mass="500"
					NoFoliageCollisions="true"
				>
					<Constraint
						Name="PlatformaR"
						Type="Prismatic"
						AxisLocal="(0; 0; 1)"
						MinLimit="0"
						MaxLimit="0.337"
					>
						<Motor Type="Position" Force="50000" />
					</Constraint>
				</Body>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<Flare
				_template="MarkerBright"
				Pos="(-13.746; 1.374; 1.029)"
				Direction="(0; 0; 1.0)"
				ParentFrame="BoneLap_cdt"
			/>
			<Flare
				_template="MarkerBright"
				Pos="(-13.746; 1.374; -1.029)"
				Direction="(0; 0; -1.0)"
				ParentFrame="BoneLap_cdt"
			/>
		</Ignition>
		<StopSignals>
			<Flare _template="StopSignal" Pos="(-13.748; 1.25; -1.002)" ParentFrame="BoneLap_cdt" />
			<Flare _template="StopSignal" Pos="(-13.748; 1.25; 1.002)" ParentFrame="BoneLap_cdt" />
			<Light _template="StopSignal" Pos="(-13.748; 1.25; 0)" ParentFrame="DvigPlatforv_cdt" />
		</StopSignals>
		<ReverseSignals>
			<Light _template="ReverseSignal" Pos="(-13.747; 1.122; 0.0)" ParentFrame="DvigPlatforv_cdt" />
			<Flare _template="ReverseSignal" Pos="(-13.747; 1.122; 1.024)" ParentFrame="BoneLap_cdt" />
			<Flare _template="ReverseSignal" Pos="(-13.747; 1.122; -1.024)" ParentFrame="BoneLap_cdt" />
		</ReverseSignals>
	
	</ModelAttachments>
	<AutomaticIK>
		<IKBone ModelFrame="BonePistonsBase" ParentFrame="DvigPlatforv_cdt">
			<IKJoint Type="Hinge" AxisLocal="(0;1;0)" />
			<IKBone
				ModelFrame="BonePistons"
				AttachToFrame="BoneLap_cdt"
				AttachOffset="(0; 0.0; 0)"
			>
				<IKJoint Type="Slider" AxisLocal="(1;0;0)" />
			</IKBone>
		</IKBone>
	</AutomaticIK>
	<GameData>
	<LoadArea
			Min="(-12.236; 0.0; -2.2)"
			Max="(-5.174; 2.957; 2.2)"
			TrailerLoad="true"
			Type="ShortLogs"
		/>
		<LoadArea
			Min="(-12.236; 0.0; -2.2)"
			Max="(-5.174; 2.957; 2.2)"
			TrailerLoad="true"
			Type="MediumLogs"
		/>
		<LoadArea
			Min="(-17.296; 0.0; -2.2)"
			Max="(-3.793; 2.957; 2.2)"
			TrailerLoad="true"
			Type="LongLogs"
		/>
		<WinchSocket Pos="(-7.0; 1.4; 0.0)" />
		<WinchSocket Pos="(-11.0; 1.4; 1.9)" />
		<WinchSocket Pos="(-11.0; 1.4; -1.9)" />
		<WinchSocket Pos="(-7.0; 1.4; 1.9)" />
		<WinchSocket Pos="(-7.0; 1.4; -1.9)" />
		<WinchSocket Pos="(-12.941; 1.496; 0.0)" />
		<WinchSocket Pos="(-12.941; 1.3; 2.0)" />
		<WinchSocket Pos="(-12.941; 1.3; -2.0)" />
		<WinchSocket Pos="(-3.338; 2.473; 0.0)" />
		<WinchSocket ParentFrame="DvigPlatforv_cdt" Pos="(-13.543; 0.87; 0)" />
		<WinchSocket ParentFrame="BoneFront_cdt" Pos="(-2.786; 1.324; 0)" />
		<WinchSocket ParentFrame="BoneLap_cdt" Pos="(-13.593; 3.435; -0.812)" />
		<WinchSocket ParentFrame="BoneLap_cdt" Pos="(-13.593; 3.435; 0.812)" />
		<RequiredAddon Types="maz_big_tractor,maz_tractor,kraz_tractor,mzkt_tractor" />
		<InstallSocket Type="KamazTrailer3" Offset="(0; 1.32; 0.0)" />
		<AddonSockets>
			<Socket Names="1LoadBigskont" ParentFrame="BoneRear_cdt" Offset="(-7.5; 1.5; 0)" />
	</GameData>
</Truck>
