<_templates Include="trucks">
	<Wheel>
		<TrailerWheel
			Type="tralkolpr"
			HardpointOffsetY="-0.05"
			SuspensionMin="-0.9"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.4"
		HardpointDefaultZ="0.75"
	>
	<Wheel
			_template="TrailerWheel"
			HardpointX="-2.929"
			RightSide="true"
			SuspensionStrength="0.1"
			ParentFrame="B2_cdt"
		/>
	<Wheel
			_template="TrailerWheel"
			HardpointX="-2.929"
			SuspensionStrength="0.1"
			ParentFrame="B2_cdt"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-1.816"
			SuspensionStrength="0.1"
			ParentFrame="B2_cdt"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="-1.816"
			RightSide="true"
			SuspensionStrength="0.1"
			ParentFrame="B2_cdt"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="2.059"
			SuspensionStrength="0.1"
			ParentFrame="B1_cdt"
		/>
		<Wheel
			_template="TrailerWheel"
			HardpointX="2.059"
			RightSide="true"
			SuspensionStrength="0.1"
			ParentFrame="B1_cdt"
		/>
	</Wheels>
	<TruckData   RepairsCapacity="100">
		
		<Constraint _template="TrailerRagdoll" />
		<Camera Center="(-4.0; 0; 0)" />
		<Axles>
			<Axle Frame="B1_cdt" LeftWheel="2" RightWheel="3" />
			<Axle Frame="B2_cdt" LeftWheel="0" RightWheel="1" />
		</Axles>
	</TruckData>
	<RepairsHide>
		<Mesh HideThreshold="0.0" Frame="kanistra" />
	</RepairsHide>
	<PhysicsModel Mesh="trucks/tral">
	<Light
			Pos="(2.096; 1.217; -1.166)"
			Dir="(1.0; -0.5; -0.5)"
			ParentFrame="rama_cdt"
			AttenEnd="4"
			Color="g(253; 240; 226) x 0.1"
			InnerCone="120"
			OuterCone="180"
		/>
		<Light
			Pos="(2.106; 1.241; 1.198)"
			Dir="(1.0; -0.5;  0.5)"
			ParentFrame="rama_cdt"
			AttenEnd="4"
			Color="g(253; 240; 226) x 0.1"
			InnerCone="120"
			OuterCone="180"
		/>
		<Flare
			Pos="(2.106; 1.236; -1.162)"
			Dir="(1.0; -0.5; -0.5)"
			ParentFrame="rama_cdt"
			AspectRatio="1.4"
			Color="g(165; 149; 130) x 0.6"
			DirAngle="90"
			Size="0.4"
		/>
		<Flare
			Pos="(2.106; 1.243; 1.201)"
			Dir="(1.0; -0.5;  0.5)"
			ParentFrame="rama_cdt"
			AspectRatio="1.4"
			Color="g(165; 149; 130) x 0.6"
			DirAngle="90"
			Size="0.4"
		/>
		<Body
			CenterOfMassOffset="(-0.7; 0; 0)"
			ImpactType="Truck"
			Mass="2000"
			ModelFrame="rama_cdt"
		>
			<Body Mass="1000" ModelFrame="op_cdt">
				<Constraint
					AxisLocal="(0; 0; 1)"
					MinLimit="-70"
					MaxLimit="0"
					Name="lapaverh"
					Type="Hinge"
				>
					<Motor Force="1200000" Type="Position" />
				</Constraint>
			</Body>
			<Body Mass="500" ModelFrame="pov_cdt">
				<Constraint
					AxisLocal="(0.0; 1.0; 0.0)"
					Collisions="None"
					MinLimit="-40"
					MaxLimit="40"
					Type="Hinge"
				>
					<Motor Force="10" Type="Position" />
				</Constraint>
				<Body Mass="3000" ModelFrame="dish_cdt">
					<Constraint
						AxisLocal="(0.0; 0.0; 1.0)"
						MinLimit="-50"
						MaxLimit="50"
						Type="Hinge"
					>
						<Motor Force="30" Type="Position" />
					</Constraint>
					
				</Body>
			</Body>

		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<StopSignals>
			<Flare _template="StopSignal" Pos="(-3.96; 0.673; 1.328)" ParentFrame="rama_cdt" />
			<Flare _template="StopSignal" Pos="(-3.96; 0.659; -1.243)" ParentFrame="rama_cdt" />
		</StopSignals>
		<Ignition>
			<Flare _template="StopSignal" Pos="(-3.96; 0.626; 1.329)" ParentFrame="rama_cdt" />
			<Flare _template="StopSignal" Pos="(-3.96; 0.608; -1.246)" ParentFrame="rama_cdt" />
		</Ignition>
	</ModelAttachments>
	<GameData>
		<LoadArea
			Min="(-1.008; 0.048; -4.2)"
			Max="(4.661; 3.165; 4.2)"
			TrailerLoad="true"
			Type="ShortLogs"
			ParentFrame="rama_cdt"
		/>
		<LoadArea
			Min="(-6.914; 3.165; 4.2)"
			Max="(-1.091; 0.048; -4.2)"
			TrailerLoad="true"
			Type="ShortLogs"
			ParentFrame="rama_cdt"
		/>
	<LoadArea
			Min="(-1.008; 0.048; -4.2)"
			Max="(4.661; 3.165; 4.2)"
			TrailerLoad="true"
			Type="MediumLogs"
			ParentFrame="rama_cdt"
		/>
		<LoadArea
			Min="(-6.914; 3.165; 4.2)"
			Max="(-1.091; 0.048; -4.2)"
			TrailerLoad="true"
			Type="MediumLogs"
			ParentFrame="rama_cdt"
		/>
			<LoadArea
			Min="(-1.008; 0.048; -4.2)"
			Max="(4.661; 3.165; 4.2)"
			TrailerLoad="true"
			Type="LongLogs"
			ParentFrame="rama_cdt"
		/>
		<LoadArea
			Min="(-6.914; 3.165; 4.2)"
			Max="(-1.091; 0.048; -4.2)"
			TrailerLoad="true"
			Type="LongLogs"
			ParentFrame="rama_cdt"
		/>
		
		<WinchSocket Pos="(-3.839; 0.814; 0.029)" ParentFrame="rama_cdt" />
		<WinchSocket Pos="(2.676; 1.359; 0.834)"  />
		<WinchSocket Pos="(2.716; 1.37; -0.761)" />
		<WinchSocket Pos="(2.498; 1.544; 0.066)" />
		<WinchSocket Pos="(5.348; 0.822; 0.061)"   ParentFrame="dish_cdt"/>
		<InstallSocket Offset="(5.339; 0.826; 0.062)" Type="KamazTrailerCart" ParentFrame="dish_cdt"/>
		<AddonSockets>
			<Socket Names="load_t34" Offset="(0.; 0.0 ; 0.0)" ParentFrame="rama_cdt" />
			<Socket Names="load_shtug" Offset="(0.; 0.0 ; 0.0)" ParentFrame="rama_cdt" />
			<Socket Names="load_exkav" Offset="(0.; 0.0 ; 0.0)" ParentFrame="rama_cdt" />
		</AddonSockets>
	</GameData>
	<ControlledConstraints>
		<Constraint Id="lapa R\Space" Name="lapaverh" />
	</ControlledConstraints>
</Truck>
