<_templates Include="trucks">
	  <Wheel>
		<Nami1
			ConnectedToHandbrake="true"
			SuspensionMin="-3.0"
			SuspensionMax="3.0"
			SuspensionStrength="0.05"
			Torque="default"
			Type="Nami_wheelsP"
		/>
		<Nami2
			ConnectedToHandbrake="true"
			SuspensionMin="-3.0"
			SuspensionMax="3.0"
			SuspensionStrength="0.05"
			Torque="default"
			Type="Nami_wheelsP"
		/>
	</Wheel>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.0"
		HardpointDefaultZ="0.0"
	>
		<Wheel _template="Nami1" HardpointX="2.401"  HardpointY="0.673" HardpointZ="1.21" ParentFrame="Balancing_trolley_front_cdt" />		
		<Wheel _template="Nami1" HardpointX="2.401"  HardpointY="0.673" HardpointZ="1.21" ParentFrame="Balancing_trolley_front_cdt" RightSide="true"  />

		<Wheel _template="Nami1" HardpointX="0.732"  HardpointY="0.673" HardpointZ="1.21" ParentFrame="Balancing_trolley_front_cdt" />		
		<Wheel _template="Nami1" HardpointX="0.732"  HardpointY="0.673" HardpointZ="1.21" ParentFrame="Balancing_trolley_front_cdt" RightSide="true"  />

		<Wheel _template="Nami2" HardpointX="-1.948"  HardpointY="0.673" HardpointZ="1.21" ParentFrame="Balancing_trolley_rear_cdt" />		
		<Wheel _template="Nami2" HardpointX="-1.948"  HardpointY="0.673" HardpointZ="1.21" ParentFrame="Balancing_trolley_rear_cdt" RightSide="true"  />
	
		<Wheel _template="Nami2" HardpointX="-3.617"  HardpointY="0.673" HardpointZ="1.21" ParentFrame="Balancing_trolley_rear_cdt" />		
		<Wheel _template="Nami2" HardpointX="-3.617"  HardpointY="0.673" HardpointZ="1.21" ParentFrame="Balancing_trolley_rear_cdt" RightSide="true"  />	
	</Wheels>
	<TruckData
		BackSteerSpeed="0.025"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="2.0"
		ExhaustStartTime="2.0"
		FuelCapacity="660"
		LockClothInvertDir="true"
		LockClothOrigin="(3.732; 3.63; 0)"
		LockClothScale="1.1"
		Responsiveness="0.05"
		SteerSpeed="0.028"
	>

		<SteeringWheel Frame="BoneSteering" />
		<Steam Origin="(3.475; 2.3; 0)" Scale="0.5"  />
		<Sounds
			_template="Default"
			EngineHeavyVolume="0.5"
			Origin="(2.856; 1.95; 0.0)"
		>
			<Reverse Sound="k8400/k8400_back_beeper" />
			<EngineTrans Sound="Nami_trans" />
			<EngineStop Sound="Nami_stop" />
			<EngineStart Sound="Nami_start" />
			<EngineRev Sound="Nami_rev" />
			<EngineLow Sound="Nami_low" />
			<EngineIdle Sound="Nami_idle" />
			<EngineHigh Sound="Nami_high" />
			<EngineHeavy Sound="Nami_heavy" />
			<EngineTurbo Sound="engine/kraz_new_high" />
		</Sounds>
		<Shakers>
			<Shaker Frame="Engine" MaxAngle="(2; 2; 0)" MaxFrequency="2" />
		</Shakers>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
			<Shaft SocketPointA="Shaft3a" SocketPointB="Shaft3b" />
			<Shaft SocketPointA="Shaft4a" SocketPointB="Shaft4b" />
			<Shaft SocketPointA="Shaft5a" SocketPointB="Shaft5b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.5"
			HeightFront="1.6"
			HeightRear="1.6"
			MinX="-0.3"
			MaxX="4.2"
		>
			<FullOcclusion HeightRear="1.6" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.5" MinX="-0.0" MaxX="2.834" />
		<Motor BrakesDelay="0.5" MaxDeltaAngVel="0.01" Torque="240000">
			<ReverseGear AngVel="0.5" />
			<HighGear AngVel="6.0" />
			<Gear AngVel="0.5" />
			<Gear AngVel="2.8" />
			<Gear AngVel="3.6" />
			<Gear AngVel="5.0" />
			<Gear AngVel="6.0" />
		</Motor>

		<LimitedFluid
			AxisX="(0; 0; 1)"
			Center="(0.499; 2.256; 0.502)"
			LengthX="0.875"
			RadiusY="0.247"
			RadiusZ="0.247"
			Type="Cylinder"
		/>
		<LimitedFluid
			AxisX="(0; 0; 1)"
			Center="(0.499; 2.256; -0.502)"
			LengthX="0.875"
			RadiusY="0.247"
			RadiusZ="0.247"
			Type="Cylinder"
		/>


		<Intake Dir="(1.0; 0; 0)" Origin="(3.676; 1.777; 0.0)" Size="0.5" ParentFrame="BoneChassis_cdt" />
		<Exhaust Dir="(-0.25; -0.5; -0.65)" Origin="(-0.149; 1.384; -1.502)" Speed="4.03" />
		<Driver Pos="(1.2; 2.1; 0.494)" SteeringWheelPos="(1.62; 2.49; 0.494)" ParentFrame="BoneChassis_cdt" />






		<Damage
			Capacity="700"
			SensationMin="(2.0; 2.2; -1.0)"
			SensationMax="(0.8; 3.1; 1.0)"
		/>
		<Camera RadiusMultiplier="1.1" Center="(-1.5; 0; 0)" ParentFrame="BoneChassis_cdt">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(80; 80; 80)"

				ViewPos="(1.1; 2.8; 0.494)"
				WindshieldDiffuseTexture="trucks/zil131_glass__d_a.tga"
			/>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxle1" />
			<Axle Frame="BoneAxle2" />
			<Axle Frame="BoneAxle3" />
			<Axle Frame="BoneAxle4" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/Nami_0127P">
                <Body  Collisions="All"  CenterOfMassOffset="(0.0; 0.0; 0)" ImpactType="Truck" Mass="4000" >
							<Body Collisions="None" Mass="2000" ModelFrame="Balancing_trolley_front_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-15"
									MaxLimit="15"
									Type="Hinge"
								>
									<Motor Damping="5000" Spring="100000" Type="Spring" />
								</Constraint>
		     </Body>
							<Body Collisions="None" Mass="2000" ModelFrame="Rama_Perelomka_cdt">
								<Constraint
									AxisLocal="(1;0;0)"
									MinLimit="-0"
									MaxLimit="0"
									Type="Hinge"
								>
									<Motor Damping="50000" Spring="900000" Type="Spring" />
								</Constraint>
						<Body Collisions="All" Mass="2000" ModelFrame="Rama_Rear_cdt">
							<Constraint
								AxisLocal="(0;1;0)"
								MinLimit="-33"
								MaxLimit="33"
								Name="ChassisSteer1"
								Type="Hinge"
							>
								<Motor Force="500000" Tau="0.4" Type="Position" />
							</Constraint>
							<Body Collisions="All" Mass="2000" ModelFrame="RamaZad_Perelomka_cdt">
								<Constraint
									AxisLocal="(1;0;0)"
									MinLimit="-7"
									MaxLimit="7"
									Type="Hinge"
								>
									<Motor Damping="50000" Spring="900000" Type="Spring" />
								</Constraint>
							<Body Collisions="None" Mass="2000" ModelFrame="Balancing_trolley_rear_cdt">
								<Constraint
									AxisLocal="(0;0;1)"
									MinLimit="-15"
									MaxLimit="15"
									Type="Hinge"
								>
									<Motor Damping="5000" Spring="100000" Type="Spring" />
								</Constraint>

		     </Body>
		     </Body>
		     </Body>
		     </Body>
		</Body>
	</PhysicsModel>




	<ControlledConstraints>
		<Constraint Id="chassis_steer1" IsLinkedSteering="true" Name="ChassisSteer1" />
	</ControlledConstraints>


	<AutomaticIK>
		<IKBone ModelFrame="Cylinder_left1" ParentFrame="BoneChassis_cdt">
			<IKJoint AxisLocal="(0;1;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="Rama_Rear_cdt"
				ModelFrame="Cylinder_left2"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="Cylinder_rear1" ParentFrame="BoneChassis_cdt">
			<IKJoint AxisLocal="(0;1;0)" Type="Hinge" />
			<IKBone
				AttachOffset="(0.0; 0.0; 0)"
				AttachToFrame="Rama_Rear_cdt"
				ModelFrame="Cylinder_rear2"
			>
				<IKJoint AxisLocal="(1;0;0)" Type="Slider" />
			</IKBone>
		</IKBone>
	</AutomaticIK>

	<ModelAttachments>
		<ReverseSignals>
			<Light _template="ReverseSignal" Pos="(0.952; 3.058; -1.011)" ParentFrame="BoneChassis_cdt" />
			<Flare _template="ReverseSignal" Pos="(0.952; 3.058; -1.011)" ParentFrame="BoneChassis_cdt" />
		</ReverseSignals>
		<Ignition>
			<Flare _template="IgnitionSignalWhite" Pos="(4.077; 1.465; -1.081)" ParentFrame="BoneChassis_cdt" />
			<Flare _template="IgnitionSignalWhite" Pos="(4.077; 1.465; 1.081)" ParentFrame="BoneChassis_cdt" />
			<Light _template="IgnitionSignalWhite" Color="(122; 61; 0) x 1.6" Pos="(4.077; 1.465; -1.081)" ParentFrame="BoneChassis_cdt" />
			<Light _template="IgnitionSignalWhite" Color="(122; 61; 0) x 1.6" Pos="(4.077; 1.465; 1.081)" ParentFrame="BoneChassis_cdt" />
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(4.077; 1.465; -0.83)" ParentFrame="BoneChassis_cdt" />
			<Flare _template="HeadLight" Pos="(4.077; 1.465; -0.83)" ParentFrame="BoneChassis_cdt" />

			<Model _template="HeadLightRay" Org="(4.077; 1.465; 0.83)" ParentFrame="BoneChassis_cdt" />
			<Flare _template="HeadLight" Pos="(4.077; 1.465; 0.83)" ParentFrame="BoneChassis_cdt" />

		</HeadLight>

	</ModelAttachments>
	
	<HeadLight _template="Default"  Pos="(4.077; 1.465; 0.0)" ParentFrame="BoneChassis_cdt" />

	<GameData
		BalancePoints="3"
		LogPoints="0"
		Recallable="true"
	>
		<WinchSocket Pos="(4.197; 1.018; 0.41)" ParentFrame="BoneChassis_cdt" />
		<WinchSocket Pos="(-5.326; 1.432; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />

		<WinchSocket Pos="(0.888; 1.7; -1.422)" ParentFrame="BoneChassis_cdt" />
		<WinchSocket Pos="(0.888; 1.7; 1.422)" ParentFrame="BoneChassis_cdt" />

		<CompletionStarsDecal Dir="(0; 0; 1)" Pos="(1.408; 2.063; 1.025)" ParentFrame="BoneChassis_cdt" />
		<AddonSockets>
			<Socket Names="KamazTrailerCart" Offset="(-5.376; 1.42; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="MazTrailerCart" Offset="(-5.376; 1.42; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="MazTrailer" Offset="(-2.8; 2.0; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="Nami_platform" Offset="(-3.1; 1.6; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="Nami_trailer_cart" Offset="(-5.35; 1.43; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="Nami_trailer_Pipe_carrier" Offset="(-5.35; 1.43; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Nami_Protection_EngineG" Offset="(0.0; 0.0; 0.0)" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Nami_body_kit" Offset="(0.0; 0.0; 0.0)" ParentFrame="BoneChassis_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Nami_Pipe_carrier" Offset="(0.0; 0.0; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="Nami_Repair_Crane" Offset="(0.0; 0.0; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="Nami_big_cistern" Offset="(0.0; 0.0; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="KrazCartCrane" Offset="(-2.0; 0.5; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="Nami_Bort" Offset="(0.0; 0.0; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="Nami_big_cart" Offset="(0.0; 0.0; 0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="MzktTractor" Offset="(-0.5; 0.14; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="Nami_cart" Offset="(-2.8; 1.57; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Nami_load_pipe" Offset="(0.0; 0.0; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="LoadLogsShortCrane" Offset="(-2.1; 0.5; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="Nami_logs_short" Offset="(0.0; 0.0; 0.0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="Nami_logs_medium" Offset="(-1.05; 0.12; 0)" ParentFrame="RamaZad_Perelomka_cdt" />
			<Socket Names="Nami_logs_long" Offset="(-3.0; 1.55; 0)" ParentFrame="RamaZad_Perelomka_cdt" />
		</AddonSockets>
	</GameData>
	<Rotator RotationSpeed="12.8" Offset="(3.676; 1.777; 0.01)" ParentFrame="BoneFan" />
</Truck>
