<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="peterbilt281duel">
	<name>
        <en>Peterbilt 281duel</en>
        <de>Peterbilt 281duel</de>
     </name>
    <typeDesc>
        <en>Peterbilt 281duel</en>
        <de>Peterbilt 281duel</de>
    </typeDesc>
    <description>Peterbilt 281 Duel</description>
    <filename>peterbilt281duel.i3d</filename>
	
	<wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="65" rotMax="36" rotMin="-36" driveMode="2" repr="0>0" driveNode="0>0"   radius="0.56" deltaY="0.00" suspTravel="0.10" spring="35" damper="10"  mass="0.55" longitudalStiffness="0.9" lateralStiffness="4" /> <!-- Achse 1 -->
        <wheel rotSpeed="65" rotMax="36" rotMin="-36" driveMode="2" repr="0>1" driveNode="0>1|0" radius="0.56" deltaY="0.00" suspTravel="0.10" spring="35" damper="10"  mass="0.55" longitudalStiffness="0.9" lateralStiffness="4" /> <!-- Achse 1 -->
        <wheel rotSpeed="0" 						  driveMode="1" repr="0>2" 					 radius="0.56" deltaY="0.16" suspTravel="0.22" spring="30" damper="100" mass="0.55" longitudalStiffness="0.9" lateralStiffness="4" /> <!-- Achse 2 -->
        <wheel rotSpeed="0" 						  driveMode="1" repr="0>3" 					 radius="0.56" deltaY="0.16" suspTravel="0.22" spring="30" damper="100" mass="0.55" longitudalStiffness="0.9" lateralStiffness="4" /> <!-- Achse 2 -->
		<wheel rotSpeed="0" 						  driveMode="1" repr="0>4" 					 radius="0.56" deltaY="0.14" suspTravel="0.22" spring="30" damper="120" mass="0.55" longitudalStiffness="0.9" lateralStiffness="4" /> <!-- Achse 3 -->
        <wheel rotSpeed="0"  						  driveMode="1" repr="0>5" 				   	 radius="0.56" deltaY="0.14" suspTravel="0.22" spring="30" damper="120" mass="0.55" longitudalStiffness="0.9" lateralStiffness="4" /> <!-- Achse 3 -->
	</wheels>
	
<!-- Field Particle Systems (Reifenstaub) -->
	<dustWheels>
        <dustwheel size="0.6"/>
        <dustwheel size="0.6"/>
        <dustwheel size="0.7" />
        <dustwheel size="0.7" />	
	</dustWheels>

	<driveGroundParticleSystemsForDustWheels>
		<driveGroundParticleSystem node="0>26" file="ParticleSystems/dustParticleSystem.i3d" minSpeed="15" maxSpeed="30" direction="0" />
	</driveGroundParticleSystemsForDustWheels>
	
	
<!-- Motor - Engine -->	
	<motor minRpm="100" maxRpm="670 1060 2400 435" maxTorques="-1 -1 -1 -1" brakeForce="13" lowBrakeForceScale="0.5" compensateWheelRadius="true" accelerations="1 1 1 1" lowBrakeForceSpeedLimit="1" forwardGearRatio="11" backwardGearRatio="13" differentialRatio="1" rpmFadeOutRange="20">
																																															    <!-- forwardGearRatio="12"  ist ca. 70 km/h -->
		<torque rpm="100"  torque="11.5"/>
		<torque rpm="2400" torque= "7.1"/> <!-- max 7.5 -->
		
		<backwardTorque rpm="100" torque="8"/>
		<backwardTorque rpm="600" torque="5.5"/>
		<backwardTorque rpm="920" torque="3"/>
		
    </motor>
    <accelerationSpeed maxAcceleration="0.13" deceleration="0.6" backwardDeceleration="0.9" />  <!-- maxAcceleration="0.15"-->
			
    <fuelCapacity>660</fuelCapacity>
    <fuelUsage>0.005</fuelUsage> 
    <downForce>60</downForce>
	
	<components count="1">
        <component1 centerOfMass="0 0.01 -2" solverIterationCount="10" />
    </components>
		

<!-- Kameras -->	
    <cameras count="2">
        <camera1 index="6|0" rotatable="true" rotateNode="6" limit="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="70" />
        <camera2 index="7" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" />
    </cameras>
	
	
<!-- Lichter -->	
	<lights>
		<!-- Abblendlicht -->
        <light realLight="0>24|0|2" fakeLight="0>24|0|1" decoration="0>24|0|0" lightType="0"  useFakeLightIfNotReal="true"/>
		<light decoration="0>24|7|0|0" lightType="0"/> <!-- Ziffernblaetter -->
		<light decoration="0>24|7|0|4" lightType="0"/> <!-- Kontrolllampe Abblendlicht -->
		<!-- Fernlicht -->
        <light realLight="0>24|1|2" fakeLight="0>24|1|1"decoration="0>24|1|0" lightType="1" useFakeLightIfNotReal="true"/>
		<light decoration="0>24|7|0|5" lightType="1"/>	<!-- Kontrolllampe Fernlicht -->
		<!-- Arbeitslicht -->
		<light realLight="0>24|2|2" fakeLight="0>24|2|1"decoration="0>24|2|0" lightType="2" useFakeLightIfNotReal="true"/>
		<light decoration="0>24|7|0|6" lightType="2"/>	<!-- Kontrolllampe Arbeitslicht -->
    </lights>
	  
	
<!-- BeaconLights -->
	 <beaconLights stayOn="true">
		<beaconLight index="0>24|8|0|0|0" rotIndex="0>24|8|0|0" 	speed="0.016" />
		<beaconLight index="0>24|8|1|0|0" rotIndex="0>24|8|1|0"	speed="0.016" />
		<beaconLight index="0>24|7|0|3"   speed="0" />	<!-- Kontrolllampe Beaconlights -->
	</beaconLights>	
	
	<lightsaddon lightsStayOn="true">
        <light type="dirLeft" 	index="0>24|3" /> 
		<light type="dirLeft" 	index="0>24|7|0|1" />	<!-- Kontrolllampe Blinker Li -->
        <light type="dirRight" 	index="0>24|4" /> 
		<light type="dirRight" 	index="0>24|7|0|2" /> 	<!-- Kontrolllampe Blinker Re -->
        <light type="brake" 	index="0>24|5" />
<!--    <light type="reverse" 	index="0>24|6" />		<!-- da Lampengehäuse ohne Rückfahrlicht -->
		<light type="strobe" index="0>24|8|2|0" inputName="Strobeflash" sequence="100 200" stayOn="true"/>
	    <light type="strobe" index="0>24|8|3|0" inputName="Strobeflash" sequence="100 200" invert="true" stayOn="true"/>
<!--	<light type="strobe" index="0>24|8|4|0" inputName="Strobeflash" sequence="100 100" invert="true" stayOn="true"/> <!-- alternativ; hinter Kennzeichen versteckt -->
        <flashers soundfile="Sounds/blinktick.wav" lowPitch="0.6" highPitch="0.8" volume="0.6" autoreturn="true" tolerance="0.9"/>
    </lightsaddon>
	
	
	
    <steering index="0>16|0" rotationSpeed="6"/>
	
    <cuttingAreas count="0">
        <cuttingArea1 startIndex="0>8" widthIndex="0>9" heightIndex="0>10" losing="true"/>
    </cuttingAreas>
	
    <enterReferenceNode index="0>" />
    <exitPoint index="0>11" />
    <size width="3.8" length="7.5" lengthOffset="-0.2"/>

	
<!-- Attacher Joints -->	
	<attacherJoints>
	    <attacherJoint index="0>15" jointType="semitrailer" maxRotLimit="7 150 15" allowsLowering="false" allowsJointLimitMovement="false"/>
    </attacherJoints>
	
	<trailerAttacherJoints>
		<trailerAttacherJoint index="0>14|0" maxRotLimit="10 75 75"/>
		<trailerAttacherJoint index="0>13|0" low="true"/>
	</trailerAttacherJoints>
	
	
<!-- Moving Parts Interior -->
	<RPMIndicator 	index="0>27|1|0" startRot="0" idleRot="-33" maxRot="-152"/>
	<speedoMeter 	index="0>27|2|0" startRot="0" maxRot="-155" middleRot="-37" firstRot="-17" maxSpeed="78" middleSpeed="20" firstSpeed="10"/>
	<fuelMeter		index="0>27|3|0" fullRot="-90" modifier="-1"/>
	<tempMeter		index="0>27|4|0" maxRot="-78"  normalTemp="80" heatingUpModifier="10" modifier="-1"/>
	
	<!-- Dummy-Parameter: nicht löschen, sonst Fehlermeldung des .lua-Scripts -->
	<clutchPedal 	index="0>27|5|0" minRot="0" maxRot="-30" movementSpeed="5"/>
	<brakePedalLeft index="0>27|5|1" minRot="0" maxRot="-30" movementSpeed="5"/>
	<brakePedalRight index="0>27|5|1" minRot="0" maxRot="-30" movementSpeed="5"/>
	<footThrottle 	index="0>27|5|3"/>
	<shuttleLever 	index="0>27|5|4" forwardRot="-25" reverseRot="25" neutralRot="0" />
	<gearLever 		index="0>27|5|5" speed3Rot="9.16875 -0.23522 3.42534" speed2Rot="0 0 0" speed1Rot="-11.77372 -0.4457 -2.13733" />

	
<!-- SchemaOverlay -->	
	<schemaOverlay file="vehicleSchema/PeterbiltSchema.dds" fileSelected="vehicleSchema/PeterbiltSchemaSelected.dds" width="0.5" height="0.25" attacherJointPosition="0 0">
		<attacherJoint position="1 0" rotation="0" invertX="false" />
		<attacherJoint position="1 0" rotation="0" invertX="false" />
		<attacherJoint position="1 0" rotation="0" invertX="false" />
    </schemaOverlay>
	
	<tipCamera index="0>12" />

	
<!-- Sounds -->	
    <attachSound file="Sounds/attach.ogg" pitchOffset="1" />
    <motorStartSound file="Sounds/engine_on.ogg" pitchOffset="1.2" volume="1.5" />
    <motorSound file="Sounds/800rpm.ogg" pitchOffset="1" pitchScale="0.02" pitchMax="1.35" volume="1" />
    <motorSoundRun file="Sounds/1500rpm.ogg" pitchOffset="1" pitchScale="0.02" pitchMax="1.35" volume="1" />
    <motorStopSound file="Sounds/engine_off.ogg" pitchOffset="0.5" />
    <!-- <reverseDriveSound file="Sounds/reverse.ogg" volume="0.5"/>  <!-- kann alternativ aktiviert werden -->
    <compressedAirSound file="Sounds/air_brake1.ogg" pitchOffset="1" volume="1.2"/>
    <compressionSound file="Sounds/air_brake2.ogg" pitchOffset="1" volume="1.5"/>    
    <aiMotorSound  file="Sounds/800rpmAI.ogg" pitchOffset="1" radius="25" innerRadius="4" volume="1.5" /> 
	<honkSound file="Sounds/horn.ogg" client="Sounds/horn3d.ogg" volume="1" radius="80" innerRadius="35" />
    
	
<!-- exhaustParticle - Auspuffrauch -->	
	<exhaustParticleSystems count="2">
        <exhaustParticleSystem1 node="0>28|0|0" file="ParticleSystems/KirovetsK700A_ExhaustParticleSystem.i3d" />
		<exhaustParticleSystem2 node="0>28|0|2" file="ParticleSystems/KirovetsK700A_ExhaustParticleSystem.i3d" />
    </exhaustParticleSystems> 
	<dynamicExhaustingSystem minAlpha="0.05" maxAlpha="0.2" param="alphaScale" >
		<startSequence>
			<key time="0.0"  value="0 0 0 0"/>
			<key time="0.2"  value="0 0 0 0.9"/>
			<key time="0.4"  value="0 0 0 2.3"/>
			<key time="0.6"  value="0 0 0 1.6"/>
			<key time="0.8"  value="0 0 0 0.8"/>
			<key time="1.0"  value="0 0 0 0.2"/>
		</startSequence>
	</dynamicExhaustingSystem>	

	
    <characterNode index="0>17" cameraMinDistance="1.5" /> 
	
    <aiTrafficCollisionTrigger index="0>18" />  
	
	
<!-- washable parts  -->		
	  <!-- dirtInterval="hours"    cleaningInterval="sec" -->
	 <dirt dirtInterval="1"     cleaningInterval="20" updateInterval="0.15" >  <!-- 0.017 entspricht in etwa 1 Min bei dirtInterval -->
			<!-- Reifen -->
			<dirtComponent index="0>0|0" />
			<dirtComponent index="0>1|0" />
			<dirtComponent index="0>2|0" />
			<dirtComponent index="0>3|0" />	
			<dirtComponent index="0>4|0" />
			<dirtComponent index="0>5|0" />
			
			<!-- Truck::mesch -->
			<dirtComponent index="0>23" />
			<!-- <dirtComponent index="0>23|0" /> <!-- Chrometeile -->
			<dirtComponent index="0>23|2" />
			<dirtComponent index="0>23|3" />
			<dirtComponent index="0>23|5" /> <!-- Fensterrahmen -->
			
			<!-- Anbauteile -->
			<dirtComponent index="0>25|8" />
			<!-- <dirtComponent index="0>25|3" />
				 <dirtComponent index="0>25|4" /> -->	
	</dirt> 
   
</vehicle>