<_templates Include="trucks">
	<Wheel>
		<RearWheel
			ConnectedToHandbrake="true"
			SuspensionMin="-0.45"
			HardpointOffsetY="-0.25"
			SuspensionStrength="0.034"
			SuspensionDamping="0.32"
			Torque="default"
			Type="westernstar_6900xd_rear"
		/>
		<FrontWheel
			ConnectedToHandbrake="true"
			SteeringAngle="42"
			SteeringCastor="5"
			SuspensionMin="-0.4"
			HardpointOffsetY="-0.2"
			SuspensionStrength="0.032"
			SuspensionDamping="0.32"
			Torque="full"
			Type="westernstar_6900xd_front"
			ParentFrame="BoneCabin_cdt"
		/>
	</Wheel>
	<Flare>
		<MarkerBeacon Color="g(117; 94; 72) x 0.7" Size="0.5" />
		<IgnitionSignalWhite
			AspectRatio="1.4"
			Color="g(165; 149; 130) x 0.8"
			Dir="(1;0;0)"
			DirAngle="90"
			Size="0.4"
		/>
	</Flare>
	<Body>
		<Antenna Collisions="None" Mass="2">
			<Constraint
				Cone="7"
				PlaneAxisLocal="(0; 0; 1.0)"
				PlaneMin="-7"
				PlaneMax="7"
				TwistAxisLocal="(0; 1.0; 0)"
				Type="Ragdoll"
			>
				<PlaneMotor Damping=".1" Spring="60" Type="Spring" />
				<ConeMotor Damping=".1" Spring="60" Type="Spring" />	
			</Constraint>
		</Antenna>
	</Body>
</_templates>
<Truck>
	<Wheels
		HardpointDefaultY="0.67"
		HardpointDefaultZ="1.21"
	>
		<Wheel _template="FrontWheel" HardpointX="2.983" />
		<Wheel _template="FrontWheel" HardpointX="2.983" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-2.008" HardpointZ="1.108" />
		<Wheel _template="RearWheel" HardpointX="-2.008" HardpointZ="1.108" RightSide="true" />
		<Wheel _template="RearWheel" HardpointX="-3.696" HardpointZ="1.108" />
		<Wheel _template="RearWheel" HardpointX="-3.696" HardpointZ="1.108" RightSide="true" />
	</Wheels>
	<TruckData
		BackSteerSpeed="0.04"
		EngineIconMesh="env/engine_default"
		EngineIconScale="1.3"
		EngineStartDelay="0.8"
		ExhaustStartTime="0.9"
		FuelCapacity="567"
		Responsiveness="1.0"
		SteerSpeed="0.027"
		LockClothInvertDir="true"
		LockClothOrigin="(-0.4; 0.1; 0.05)"
		LockClothScale="1.14"
		
	>
		<SteeringWheel Frame="BoneSteering" />
		<SteeringRack
			Frame="BoneRack"
			FrameSteerLeft="BoneRackLeft"
			FrameSteerRight="BoneRackRight"
			RackHalfSizeZ="0.93"
		/>
		<Steam Origin="(1.268; 1.411; 0)" />
		<Steam Origin="(3.352; 1.307; 0)" Scale="0.5" ParentFrame="BoneCabin_cdt" />
		<Sounds
			_template="Default"
			AirHissInterval="12.0"
			Origin="(3.060; 1.94; 0)"
			ParentFrame="BoneCabin_cdt"			
		>
			
			<EngineRev Sound="westernstar/westernstar_rev" />
			<EngineStop Sound="westernstar/westernstar_stop" />
			<EngineStart Sound="westernstar/westernstar_start" />
			<EngineLow Sound="westernstar/westernstar_low" />
			<EngineIdle Sound="westernstar/westernstar_idle" />
			<EngineHigh Sound="westernstar/westernstar_high" />
			<EngineHeavy Sound="westernstar/westernstar_heavy" />
			<Reverse Sound="freightliner/freightliner_trans" />
		</Sounds>
		<Shakers>
			<Shaker Frame="BoneRightExhaust" MaxAngle="(1; 1; 0)" MaxFrequency="3.9" />
			<Shaker Frame="BoneLeftExhaust" MaxAngle="(1; 1; 0)" MaxFrequency="4.1" />			
		</Shakers>
		<Shafts>
			<Shaft SocketPointA="Shaft1a" SocketPointB="Shaft1b" />
			<Shaft SocketPointA="Shaft2a" SocketPointB="Shaft2b" />
			<Shaft SocketPointA="Shaft3a" SocketPointB="Shaft3b" />
			<Shaft SocketPointA="Shaft4a" SocketPointB="Shaft4b" />
		</Shafts>
		<OcclusionVolume
			HalfSizeZ="1.55"
			HeightFront="1.484"
			HeightRear="1.034"
			MinX="-5.122"
			MaxX="3.967"
		>
			<FullOcclusion HeightFront="1.5" HeightRear="1.338" />
		</OcclusionVolume>
		<OcclusionMap HalfSizeZ="1.9" MinX="-5.123" MaxX="3.917" />
		<Motor BrakesDelay="0.5" MaxDeltaAngVel="0.95" Torque="280000" EngineResponsiveness="0.4" ClutchDelay="0.09" >
			<ReverseGear AngVel="0.65" />
			<HighGear AngVel="7.3" />
			<Gear AngVel="0.5" />
			<Gear AngVel="2.7" />
			<Gear AngVel="4.9" />
			<Gear AngVel="7.1" />
			<Gear AngVel="9.3" />
		</Motor>	
		<LimitedFluid
			Center="(1.368; 1.052; 0.76)"
			LengthX="1.202"
			RadiusY="0.321"
			RadiusZ="0.321"
			Type="Cylinder"
		/>
		<LimitedFluid
			Center="(1.368; 1.052; -0.76)"
			LengthX="1.202"
			RadiusY="0.321"
			RadiusZ="0.321"
			Type="Cylinder"
		/>
		<Intake Dir="(1.0; 0; 0)" Origin="(4.424; 1.834; 0)" Size="1.219" />
		<Exhaust Dir="(-0.295; 0.897; -0.332)" Origin="(0.824; 3.98; -1.304)" Speed="4.2" IsLight="true"/>
		<Exhaust Dir="(-0.295; 0.897; 0.332)" Origin="(0.824; 3.98; 1.304)" Speed="4.2" IsLight="true"/>
		<Driver Pos="(1.536; 2.192; 0.485)" SteeringWheelPos="(1.963; 2.609; 0.472)" ParentFrame="BoneCabin_cdt" />
		<Damage
			Capacity="600"
			SensationMin="(1.1; 2.55; -0.85)"
			SensationMax="(2.3; 3.25; 0.85)"
			ParentFrame="BoneCabin_cdt"
		/>
		<Camera ParentFrame="BoneCabin_cdt"  Center="(-1.8;0;0)">
			<Cockpit
				_template="Default"
				ControlsDiffuse="g(62; 64; 59) x 0.7"
				ControlsPos="(2.16; 2.63; 0.60)"
				ViewPos="(1.488; 2.95; 0.45)"
				WindshieldDiffuseTexture="trucks/westernstar_6900xd_glass__d_a.tga"
			/>
		</Camera>
		<Axles>
			<Axle Frame="BoneAxle1" />
			<Axle Frame="BoneAxle2" />
			<Axle Frame="BoneAxle3" />
		</Axles>
	</TruckData>
	<PhysicsModel Mesh="trucks/westernstar_6900xd">
		<Body
			CenterOfMassOffset="(-0.9; -0.1; 0)"
			ImpactType="Truck"
			Mass="5500"
		>
			<Body
				CenterOfMassOffset="(0.419; -0.3; 0)"
				ImpactType="Truck"
				Mass="6500"
				ModelFrame="BoneCabin_cdt"
			>
				<Constraint
					AxisLocal="(1;0;0)"
					MinLimit="-22"
					MaxLimit="22"
					PivotOffset="(0; 0; 0)"
					Type="Hinge"
				>
					<Motor Damping="37000" Spring="320000" Type="Spring" />
				</Constraint>
				<Body _template="Mudguard" ModelFrame="BoneLeftMudguard_cdt">
					<Constraint AxisLocal="(1.0; 0.0; 0.0)" MinLimit="-5" MaxLimit="45" />
				</Body>
				<Body _template="Mudguard" ModelFrame="BoneRightMudguard_cdt">
					<Constraint AxisLocal="(1.0; 0.0; 0.0)" MinLimit="-5" MaxLimit="45" />
				</Body>
				<Body _template="SideMirror" ModelFrame="BoneMirrorLeft_cdt" />
				<Body _template="SideMirror" ModelFrame="BoneMirrorRight_cdt" />
				<Body _template="Antenna" ModelFrame="BoneLeftAntenna_cdt" />
				<Body _template="Antenna" ModelFrame="BoneRightAntenna_cdt" />
				
			</Body>
		</Body>
	</PhysicsModel>
	<ModelAttachments>
		<Ignition>
			<Flare _template="MarkerBeacon" Pos="(2.030; 3.369; -0.171)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(2.030; 3.369; 0)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(2.030; 3.369; 0.171)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(2.04; 3.369; 0.662)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="MarkerBeacon" Pos="(2.04; 3.369; -0.662)" ParentFrame="BoneCabin_cdt" />
			
			<Light _template="IgnitionSignalWhite" Pos="(4.092; 0.118; 0)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="IgnitionSignalWhite" Pos="(3.963; 1.477; 1.002)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="IgnitionSignalWhite" Pos="(3.963; 1.477; -1.002)" ParentFrame="BoneCabin_cdt" />
		
		</Ignition>
		<HeadLight>
			<Model _template="HeadLightRay" Org="(3.974; 1.465; -1.005)" ParentFrame="BoneCabin_cdt" />
			<Model _template="HeadLightRay" Org="(3.974; 1.465; 1.005)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="HeadLight" Pos="(3.974; 1.465; -1.005)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="HeadLight" Pos="(3.974; 1.465; 1.005)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="BlueStreak" Pos="(3.974; 1.465; -1.005)" ParentFrame="BoneCabin_cdt" />
			<Flare _template="BlueStreak" Pos="(3.974; 1.465; 1.005)" ParentFrame="BoneCabin_cdt" />
		</HeadLight>
	</ModelAttachments>
	<HeadLight _template="Default" Pos="(4.4; 1.430; 0)" ParentFrame="BoneCabin_cdt" />
	<GameData BalancePoints="3" LogPoints="1">
		<WinchSocket Pos="(4.497; 1.135; 0)" ParentFrame="BoneCabin_cdt" />
		<WinchSocket Pos="(-5.23; 1.143; 0)" />
		<WinchSocket Pos="(0.8; 1.25; 1.15)" />
		<WinchSocket Pos="(0.8; 1.25; -1.15)" />
		<CompletionStarsDecal Dir="(0.02; 0; 0.999)" Pos="(1.743; 2.145; 1.04)" />		
		<AddonSockets>			
			<Socket Names="KamazTrailerCart" Offset="(-5.23; 1.143; 0)" />
			<Socket Names="PacificCartTrailer" Offset="(-5.23; 1.143; 0)" />	
            <Socket Names="MaintainerSaddle" Offset="(-3.15; 1.43; 0)" />			
			<Socket Names="TruckPlatform" ParentFrame="BoneChassis_cdt" Offset="(-3.15; 1.43; 0)" />
			<Socket Names="UsSemitrailerCistern" ParentFrame="BoneChassis_cdt" Offset="(-3.15; 1.43; 0)" />			
		</AddonSockets>
		<AddonSockets>
			<Socket Names="Saddle" Offset="(-3.2; 1.31; 0)"/>
			<Socket Names="PacificCart" Offset="(-2.853; 1.386; 0)"/>
			<Socket Names="KenworthTrailerMod" ParentFrame="BoneChassis_cdt" Offset="(-1.9; 0.2; 0)" />
			<Socket Names="KenworthTrailerModLoader" ParentFrame="BoneChassis_cdt" Offset="(-1.7; 0.2; 0)" />
		</AddonSockets>
		<AddonSockets>
			<Socket Names="UsLoadLogsShort" Offset="(0; 0.2; 0)" />
			<Socket Names="UsLoadLogsShortLoaderA" Offset="(0.2; 0.2; 0)" />
			<Socket Names="UsLoadLogsLong" Offset="(-3.55; 1.37; -0.03)"/>			
		</AddonSockets>
		<AddonSockets>
			<Socket
				Names="KenworthLoader"
				ParentFrame="BoneChassis_cdt"
				Offset="(2.6; -0.1; 0)"
				NamesBlock="MaintainerTrucks,TunkShortCisternAddon,KenworthTrailerMod,KenworthTrailerModLoader"
			/>
		</AddonSockets>				
	</GameData>
</Truck>
