<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="MF6290">
	<annotation>Copyright (C) Tepa00, All Rights Reserved.</annotation>
    <name>
        <en>MF 6290</en>
        <de>MF 6290</de>
    </name>
    <description></description>
    <filename>MF6280.i3d</filename>
    <wheels autoRotateBackSpeed="2">
        <wheel rotSpeed="60" rotMax="32" rotMin="-32" driveMode="2" repr="1>1" driveNode="1>1|0" radius="0.67" deltaY="0" suspTravel="0.24" spring="18" damper="20" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2"/>
        <wheel rotSpeed="60" rotMax="32" rotMin="-32" driveMode="2" repr="2>1" driveNode="2>1|0" radius="0.67" deltaY="0" suspTravel="0.24" spring="18" damper="20" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2"/>
        <wheel rotSpeed="0" driveMode="1" repr="3>1" radius="0.84" deltaY="0" suspTravel="0.14" spring="30" damper="20" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="4>1" radius="0.84" deltaY="0" suspTravel="0.14" spring="30" damper="20" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2" />
    </wheels>	
	<motor minRpm="100" maxRpm="700 1130 2050 550" maxTorques="-1 -1 -1 -1" brakeForce="6" lowBrakeForceScale="0.4" lowBrakeForceSpeedLimit="1" compensateWheelRadius="true" accelerations="1 1 1 1" forwardGearRatio="16" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="20">
		<torque rpm="2050" torque="0.7"/>
		<backwardTorque rpm="600" torque="0.6"/>
		<backwardTorque rpm="720" torque="0"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.15" deceleration="0.7" backwardDeceleration="0.7" />	
    <fuelCapacity>225</fuelCapacity>
    <fuelUsage>0.0016</fuelUsage>
    <downForce>9</downForce>
	<bunkerSiloCompacter compactingScale="3"/>
	
	<cuttingAreas count="4">
        <cuttingArea1 startIndex="0>42|0|0" widthIndex="0>42|0|1" heightIndex="0>42|0|2" />
		<cuttingArea2 startIndex="0>42|1|0" widthIndex="0>42|1|1" heightIndex="0>42|1|2" />
		<cuttingArea3 startIndex="0>42|2|0" widthIndex="0>42|2|1" heightIndex="0>42|2|2" />
		<cuttingArea4 startIndex="0>42|3|0" widthIndex="0>42|3|1" heightIndex="0>42|3|2" />
    </cuttingAreas>
	
	<BJR_DriveGroundParticleSystems>
		<driveGroundParticleSystem node="0>42|0|0" file="ParticleSystems/fieldWorkParticleSystem.i3d" maxScale="0.8"/>
		<driveGroundParticleSystem node="0>42|1|0" file="ParticleSystems/fieldWorkParticleSystem.i3d" maxScale="0.8"/>
		<driveGroundParticleSystem node="0>42|2|0" file="ParticleSystems/fieldWorkParticleSystem.i3d" maxScale="0.8"/>
		<driveGroundParticleSystem node="0>42|3|0" file="ParticleSystems/fieldWorkParticleSystem.i3d" maxScale="0.8"/>
	</BJR_DriveGroundParticleSystems>
	
	<cameras count="2">
        <camera1 index="0>4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35" >
			<raycastNode index="0>23"/>
			<raycastNode index="0>24"/>
		</camera1>
        <camera2 index="0>5" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
    </cameras>

	<lights>
        <light realLight="0>11|0" fakeLight="0>21" decoration="0>22|1" lightType="0"/>
        <light decoration="0>22|2" lightType="0"/>
    </lights>
	
	<beaconLights>
		<beaconLight index="32|0|2" speed="0.016" />
	    <beaconLight index="33|0|2" speed="0.016" />
	</beaconLights>	
	
	<lightsaddon lightsStayOn="true" blinkSpeed="0.5">
		<light type="work" index="0>22|0" real="0>43|0" beam="0>44" inputName="frontwork" helptext="frontwork" stayOn="true"/>
		<light type="work" index="0>12|1" real="0>12|0" beam="0>12|2" inputName="rearwork" helptext="rearwork" stayOn="true"/>
		<light type="dirLeft" index="0>22|4" />
		<light type="dirRight" index="0>22|5" />
		<light type="brake" index="0>22|3" />
		<flashers soundfile="Sounds/blinktick.wav" lowPitch="0.6" highPitch="0.8" volume="0.675"/>
	</lightsaddon>    
	
    <steering index="0>16|0" rotationSpeed="6"/>
    <enterReferenceNode index="0" />
    <exitPoint index="0>9" />
    <size width="3.5" length="5.5" lengthOffset="-0.4"/> 
		
	<motorStartDuration>2500</motorStartDuration>
    <attachSound file="$data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="Sounds/agrotron_medium_start.wav" pitchOffset="1" volume="1" />
    <motorSound file="Sounds/agrotron_medium_idle.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.75" volume="1" radius="50" innerRadius="10" />
    <motorSoundRun file="Sounds/ttv_run2.wav" pitchOffset="0.5" pitchScale="0.033" pitchMax="1.13" volume="1" />
    <motorStopSound file="$data/vehicles/steerable/deutz/agrotron_x_out.wav" pitchOffset="1" volume="1" />
    <compressedAirSound file="$data/vehicles/steerable/deutz/brakeBig.wav" pitchOffset="1" volume="1"/>
    <compressionSound file="$data/vehicles/steerable/deutz/compressorWork.wav" pitchOffset="1" volume="1.5"/>
	<honkSound file="Sounds/T7030_Honk.wav" volume="1" radius="80" innerRadius="35" />		
	
	<indoorSounds camIndex="2" >
		<sound id="attachSound" percent="0.4" />
		<sound id="motorSound" percent="0.4" volume="0.6" />
		<sound id="motorStartSound" percent="0.4" volume="0.6" />
		<sound id="motorStopSound" percent="0.4" />
		<sound id="motorSoundRun" percent="0.4" volume="0.3" />
		<sound id="compressionSound" percent="0.4" />
	</indoorSounds>

    <exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="20" file="ParticleSystems/KirovetsK700A_ExhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

	<dynamicExhaustingSystem minAlpha="0.1" maxAlpha="1.0" param="alphaScale" >
		<startSequence>
			<key time="0.0"  value="0 0 0 0"/>
			<key time="0.4"  value="0 0 0 0.5"/>
			<key time="0.58" value="0 0 0 0.2"/>
			<key time="0.6"  value="0 0 0 0.2"/>
			<key time="0.75" value="0 0 0 1"/>
			<key time="0.93" value="0 0 0 1"/>
			<key time="1.0"  value="0 0 0 0.2"/>
		</startSequence>
	</dynamicExhaustingSystem>
    
    <characterNode index="17" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="19" />
	
	<moveDownIntervall ms="1250" />
	
	<trailerAttacherJoints>
        <trailerAttacherJoint index="0>31|2|3|0" maxRotLimit="10 80 80" ptoOutputNode="0>47" hose="0>48" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d"/>
        <trailerAttacherJoint index="0>31|2|4|0" low="true" ptoOutputNode="0>47" hose="0>48" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d"/>
    </trailerAttacherJoints>
	
	<attacherJoints>
        <attacherJoint index="0>13|0|0" rotationNode="0>13" minRot="30 0 0" minRot2="-22 0 0" maxRot="2 0 0" rotationNode2="0>13|0" maxRot2="6 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2" ptoOutputNode="0>47"  hose="0>48" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d" >
            <bottomArm rotationNode="0>14" translationNode="0>14|0" referenceNode="0>14|0|0" zScale="-1" />
            <topArm baseNode="0>15" filename="$data/vehicles/steerable/upperLinkMedium.i3d" zScale="-1" />
        </attacherJoint>
        <attacherJoint index="0>38|0|0" rotationNode="0>38" minRot="-36 0 0" minRot2="25 0 0" maxRot="2 0 0" rotationNode2="0>38|0" maxRot2="-2 0 0" maxTransLimit="0 0.4 0" maxRotLimit="0 0 20" moveTime="2" ptoOutputNode="0>49" hose="0>50" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="0>39" translationNode="0>39|0" referenceNode="0>39|0|0" zScale="1" />
            <topArm baseNode="0>40|0" filename="$data/vehicles/steerable/upperLinkMedium.i3d" zScale="1" />
        </attacherJoint>
    </attacherJoints>	
	
	<topTrailerAttacher index="0>31|2|3" maxTransLimit="1.225" minTransLimit="1.11" shouldHide="true" shouldReset="true" attacherIndex="3"/>
	<lowTrailerAttacher index="0>31|2|4" maxTransLimit="0.72" minTransLimit="0.55" shouldHide="false" shouldReset="true" attacherIndex="4"/>
	
	<frontLinkageBottomArm rotationNode="0>39|0|1" />
	<frontLinkageTopLinkNode rotationNode="0>40|0" />	
	
	<rearLinkageBalls index="0>14|0|2|0"/>

	<movingTools>
		<!-- attacher joint back bottom-->
        <movingTool index="0>14">
            <!-- cylinder 2 -->
            <dependentPart index="0>31|1" />
        </movingTool>	
    </movingTools>

	<movingParts>
		<!-- attacher joint back bottom cylinder 1 -->
        <movingPart index="0>31|0" referencePoint="0>31|1|2" referenceFrame="0>" invertZ="false">
            <translatingPart index="0>31|0|0" />
        </movingPart>

        <!-- attacher joint back bottom cylinder 2 -->
        <movingPart index="0>31|1" referencePoint="0>14|0|1" localReferencePoint="0>31|1|0" referenceFrame="0>" invertZ="false">
            <dependentPart index="0>31|1|0" />
            <!-- cylinder 1 -->
            <dependentPart index="0>31|0" />
        </movingPart>
        <!-- attacher joint back bottom cylinder 2b -->
        <movingPart index="0>31|1|0" referencePoint="0>14|0|1" referenceFrame="0>31|1|1" invertZ="false">
        </movingPart>
		<!--steeringHydralicsRight-->
		<movingPart index="0>36|1" referencePoint="1>1|1" referenceFrame="0>" invertZ="true" >
            <translatingPart index="0>36|1|1" />
        </movingPart>		
		<!--steeringHydralicsLeft-->
		<movingPart index="0>36|0" referencePoint="2>1|1" referenceFrame="0>" >
            <translatingPart index="0>36|0|1" />
        </movingPart>	
    </movingParts>
	
	<animations>		
		<animation name="rightDoor">
			<part node="0>30|5" startTime="0" duration="2" startRot="2.48 0 0" endRot="-2 -33 0"/>
        </animation>
		<animation name="leftDoor">
			<part node="0>30|6" startTime="0" duration="2" startRot="2.48 0 0" endRot="-2 33 0"/>
        </animation>
		<animation name="wiper">
			<!-- front wiper -->
			<part node="0>25|0" startTime="0" endTime="3" startRot="0 0 6" endRot="0 0 174"/>
			<part node="0>25|0" startTime="3" endTime="6" startRot="0 0 174" endRot="0 0 6"/>						
		</animation>
	</animations>
	
	<animParts>
		<animPart index="0>39|0|1" id="Fronthydraulig" showHelp="true" rotMin="0 0 0" rotMax="-60 0 0" moveTime="3" />
		<animPart index="0>39|0|1" id="Fronthydraulig" rotMin="0 0 0" rotMax="-60 0 0" moveTime="3" />			
	</animParts>
	
	<interactiveComponents>
		<windows>			
			<window name="rightDoor"   mark="0>30|5|0" size="0.1" animName="rightDoor" onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="leftDoor"    mark="0>30|6|0" size="0.1" animName="leftDoor" onMessage="ic_component_open" offMessage="ic_component_close"/>			
		</windows>
	</interactiveComponents>
	
	<wiper animName="wiper" speed="3.0" />
		
    <components count="5">
	<!-- main component -->
    <component1 centerOfMass="0 0.01 0.1" solverIterationCount="10" />
	<!-- front right wheel component -->
	<component2 centerOfMass="0 -0.8 0" solverIterationCount="190" />
	<!-- front left wheel component -->
	<component3 centerOfMass="0 -0.8 0" solverIterationCount="190" />
	<!-- back right wheel component -->
	<component4 centerOfMass="0 -0.8 0" solverIterationCount="190" />
	<!-- back left wheel component -->
	<component5 centerOfMass="0 -0.8 0" solverIterationCount="190" />
	
	<!-- front right wheel joint (componentJointIndex = 1) -->
	<joint component1="0" component2="1" index="1>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
	<!-- front left wheel joint (componentJointIndex = 2) -->
	<joint component1="0" component2="2" index="2>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
	<!-- back right wheel joint (componentJointIndex = 3) -->
	<joint component1="0" component2="3" index="3>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
	<!-- back left wheel joint (componentJointIndex = 4) -->
	<joint component1="0" component2="4" index="4>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
			
	<!-- disable collisions between existing components -->
	<collisionPair component1="0" component2="1" enabled="false"/>
	<collisionPair component1="0" component2="2" enabled="false"/>
	<collisionPair component1="0" component2="3" enabled="false"/>
	<collisionPair component1="0" component2="4" enabled="false"/>
    </components>
	
	<!-- main ploughing mod code -->
	<frontRightWheel wheelIndex="1" componentJointIndex="1" furrowDepth="0.15" fallSpeed="0.25" tireWidth="0.4" />
	<frontLeftWheel wheelIndex="2" componentJointIndex="2" furrowDepth="0.15" fallSpeed="0.25" tireWidth="0.4" />
	<backRightWheel wheelIndex="3" componentJointIndex="3" furrowDepth="0.15" fallSpeed="0.25" tireWidth="0.45" />
	<backLeftWheel wheelIndex="4" componentJointIndex="4" furrowDepth="0.15" fallSpeed="0.25" tireWidth="0.45" />
	<!-- end main ploughing mod code -->
	
	<!-- optional ploughing mod code -->
	<workExhaustParticleSystems count="1">
        <workExhaustParticleSystem1 node="20" file="$data/vehicles/particleSystems/exhaustParticleSystemBig.i3d" />
	</workExhaustParticleSystems>
	
	<increaseRpmDuringPloughing value="true" />
	<!-- end optional ploughing mod code -->
	
	<schemaOverlay file="$data/vehicles/schemas/vehicleSchema.png" fileSelected="$data/vehicles/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0">
        <attacherJoint position="1 0" rotation="0" invertX="false" />
        <attacherJoint position="0 0" rotation="0" invertX="true" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
    </schemaOverlay>
</vehicle>
