<_templates Include="trucks">
	<Wheel>
		<TrailerWheel			
			SuspensionMin="-0.3"
			HardpointOffsetY="-0.08"
			SuspensionStrength="0.055"
			SuspensionDamping="0.55"
			Type="kraz_double_highway"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.4"
		HardpointDefaultZ="1.12"
	>
		<Wheel _template="TrailerWheel" HardpointX="-7.51" />
		<Wheel _template="TrailerWheel" HardpointX="-7.51" RightSide="true" />
		<Wheel _template="TrailerWheel" HardpointX="-8.869" />
		<Wheel _template="TrailerWheel" HardpointX="-8.869" RightSide="true" />
	</Wheels>
	<TruckData>
		<OcclusionMap
			HalfSizeZ="1.75"
			MinX="-7.84"
			MaxX="0"
			Texture="trucks/occlusion/chassis_trailer__s_d_a.tga"
		/>
		<Constraint
			PlaneAxisLocal="(0; 0; 1.0)"
			PlaneMin="-90"
			PlaneMax="90"
			TwistAxisLocal="(1.0; 0; 0)"
			TwistMin="-30"
			TwistMax="30"
			Type="Ragdoll"
		>
			<TwistMotor Damping="5000" Spring="920000" Type="Spring" />
		</Constraint>
		<Camera Center="(-6.0; 0; 0)" />
		<Axles>
			<Axle Frame="BoneAxle0" />
			<Axle Frame="BoneAxle1" />
		</Axles>
	</TruckData>
	<PoweredConstraints>
		<Group Id="foot_push">
			<Constraint Name="Foot" Position="-0.52" TerminalFix="true" />
		</Group>
	</PoweredConstraints>
	<PhysicsModel Mesh="trucks/kraz256_tralTZ-22">
		<Body
			CenterOfMassOffset="(-0.1; -0.1; 0)"
			ImpactType="Truck"
			Mass="5000"
		>
			<Body
				ForceBodyParams="true"
				Mass="300"
				ModelFrame="BoneFoot_cdt"
				NoFoliageCollisions="true"
			>
				<Constraint
					AxisLocal="(0;1;0)"
					MinLimit="-0.53"
					MaxLimit="0"
					Name="Foot"
					Type="Prismatic"
				>
					<Motor Force="150000" Type="Position" />
				</Constraint>
			</Body>
			<Body ModelFrame="BoneLap_cdt" Mass="600">
				<Constraint
					Name="Crane"
					Type="Hinge"
					AxisLocal="(0;0;1)"
					MinLimit="-0"
					MaxLimit="140"
				>
					<Motor Type="Position" Tau="0.5" Force="120000" />
				</Constraint>
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Light
				Pos="(-10.29; 0.622; 0)"
				AttenEnd="2.0"
				Color="(102; 1; 1) x 4"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="160"
			/>
			<Flare
				Pos="(-10.29; 0.622; 1.153)"
				AspectRatio="1.4"
				Color="g(255; 0; 0) x 0.4"
				ColorMultAtDay="0.6"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Reflections="true"
				Size="1.8"
			/>
			<Flare
				Pos="(-10.29; 0.622; -1.153)"
				AspectRatio="1.4"
				Color="g(255; 0; 0) x 0.4"
				ColorMultAtDay="0.6"
				Dir="(-1.0; 0; 0)"
				DirAngle="90"
				Reflections="true"
				Size="1.8"
			/>
		</StopSignals>
		<Ignition>
			<Light
				Pos="(-10.29; 0.622; 0)"
				AttenEnd="1.0"
				Color="(102; 0; 0) x 0.8"
				Dir="(-1.0; -0.2; 0)"
				InnerCone="120"
				OuterCone="180"
			/>
			<Flare
				Pos="(-10.29; 0.622; 1.153)"
				AspectRatio="1.4"
				Color="g(169; 0; 0) x 0.8"
				Dir="(-1;0;0)"
				DirAngle="90"
				Size="0.5"
			/>
			<Flare
				Pos="(-10.29; 0.622; -1.153)"
				AspectRatio="1.4"
				Color="g(169; 0; 0) x 0.8"
				Dir="(-1;0;0)"
				DirAngle="90"
				Size="0.5"
			/>
		</Ignition>
	</ModelAttachments>
	<ControlledConstraints>
		<Constraint Id="trap" Name="Crane" />
	</ControlledConstraints>
	<GameData>
	    <WinchSocket Pos="(-0.099; 1.318; 0.0)" />
		<WinchSocket Pos="(-10.47; 0.565; 0.803)" />
		<WinchSocket Pos="(-10.47; 0.565; -0.803)" />
		<WinchSocket Pos="(-1.738; 1.859; 0.523)" />
		<WinchSocket Pos="(-1.738; 1.859; -0.523)" />
		<WinchSocket Pos="(0.814; 1.89; 0.212)" />
		<WinchSocket Pos="(0.814; 1.89; -0.212)" />
		<RequiredAddon Types="maz_tractor,kraz_tractor" />
		<InstallSocket Offset="(0.0; 1.2; 0.0)" Type="KamazTrailer" />
	</GameData>
</Truck>
