<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Fendt_414VarioTMS">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Fendt 414 Vario TMS</en>
        <de>Fendt 414 Vario TMS</de>
    </name>

    <filename>Fendt414VarioNew.i3d</filename>

    <size width="3.0" length="5.5" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel rotSpeed="50" rotMax="30" rotMin="-30" driveMode="2" repr="1>1" driveNode="1>1|0" radius="0.64" deltaY="0.1" suspTravel="0.2" spring="50" damper="40" mass="0.105" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="50" rotMax="30" rotMin="-30" driveMode="2" repr="2>1" driveNode="2>1|0" radius="0.64" deltaY="0.1" suspTravel="0.2" spring="50" damper="40" mass="0.105" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="3>1" radius="0.84" deltaY="0.05" suspTravel="0.1" spring="80" damper="40" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="4>1" radius="0.84" deltaY="0.05" suspTravel="0.1" spring="80" damper="40" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2" />
    </wheels>

    <motor minRpm="100" maxRpm="600 900 1900 450" maxTorques="-1 -1 -1 -1" brakeForce="3.5" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" compensateWheelRadius="true" accelerations="1 1 1 1" forwardGearRatio="16" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="50">
		<torque rpm="500" torque="0.35"/>
		<torque rpm="1900" torque="0.3"/>
		<backwardTorque rpm="100" torque="0.7"/>
		<backwardTorque rpm="600" torque="0.3"/>
		<backwardTorque rpm="720" torque="0"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.25" deceleration="0.7" backwardDeceleration="0.7" />
	
    <fuelCapacity>222</fuelCapacity>
    <fuelUsage>0.002</fuelUsage>
    <downForce>7</downForce>
    <bunkerSiloCompacter compactingScale="3"/>

    <cameras count="2">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35" >
			<raycastNode index="0>45"/>
			<raycastNode index="0>46"/>
		</camera1>
        <camera2 index="5" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
    </cameras>
	
    <lights count="2">
        <light1 index="12" />
        <light2 index="13" />
    </lights>
	
	<brakeLights>
		<brakeLight index="0>39" />
	</brakeLights>
	
	<lightCones>
		<lightCone index="33" />	
	</lightCones>

	<lightCoronas>
		<lightCorona index="32" />	
	</lightCoronas>
	
        <beaconLights>
		<beaconLight index="34|0|3" speed="0.016" />
	</beaconLights>
	
	<lightsaddon lightsStayOn="true">
			<light type="dirLeft" index="37" />
			<light type="dirRight" index="38" />
			<light type="work" index="40" inputName="Work1" stayOn="true"/>
			<light type="work" index="41" inputName="Work2" stayOn="true"/>
			<light type="work" index="42" inputName="Work3" stayOn="true"/>
        </lightsaddon>
	
    <operatingHours posX="0.7543" posY="0.2415" />
    <ESLimiter posX="0.7543" posY="0.2415" />
	
    <steering index="20|0" rotationSpeed="6"/>
    <enterReferenceNode index="0>" />
    <exitPoint index="9" />
    
    <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>
	
	<speedDisplayEntries><!-- 99.9 -->
		<displayEntry displayEntry="second" control_0="43|3|0" control_1="43|3|1" control_2="43|3|2" control_3="43|3|3" control_4="43|3|4" control_5="43|3|5" control_6="43|3|6" control_7="43|3|7" control_8="43|3|8" control_9="43|3|9" />
		<displayEntry displayEntry="first" control_0="43|2|0" control_1="43|2|1" control_2="43|2|2" control_3="43|2|3" control_4="43|2|4" control_5="43|2|5" control_6="43|2|6" control_7="43|2|7" control_8="43|2|8" control_9="43|2|9" />
		<displayEntry displayEntry="comma_first" control_0="43|0|0" control_1="43|0|1" control_2="43|0|2" control_3="43|0|3" control_4="43|0|4" control_5="43|0|5" control_6="43|0|6" control_7="43|0|7" control_8="43|0|8" control_9="43|0|9" />
	</speedDisplayEntries>	
	<RPMDisplayEntries><!-- 9999 -->
		<displayEntry displayEntry="first" control_0="44|0|0" control_1="44|0|1" control_2="44|0|2" control_3="44|0|3" control_4="44|0|4" control_5="44|0|5" control_6="44|0|6" control_7="44|0|7" control_8="44|0|8" control_9="44|0|9" />
		<displayEntry displayEntry="second" control_0="44|1|0" control_1="44|1|1" control_2="44|1|2" control_3="44|1|3" control_4="44|1|4" control_5="44|1|5" control_6="44|1|6" control_7="44|1|7" control_8="44|1|8" control_9="44|1|9" />
		<displayEntry displayEntry="third" control_0="44|2|0" control_1="44|2|1" control_2="44|2|2" control_3="44|2|3" control_4="44|2|4" control_5="44|2|5" control_6="44|2|6" control_7="44|2|7" control_8="44|2|8" control_9="44|2|9" />
		<displayEntry displayEntry="fourth" control_0="44|3|0" control_1="44|3|1" control_2="44|3|2" control_3="44|3|3" control_4="44|3|4" control_5="44|3|5" control_6="44|3|6" control_7="44|3|7" control_8="44|3|8" control_9="44|3|9" />
	</RPMDisplayEntries>
	
    <tipCamera index="11" />
    
    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="$data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="Sound/fendt312start.wav" pitchOffset="0.95" />
    <motorSound file="Sound/fendt312idle.wav" pitchOffset="0.95" pitchScale="0.04" pitchMax="1.35"/>
    <motorSoundRun file="sound/fendt312run.wav" pitchOffset="0.8" pitchScale="0.03" pitchMax="1.6"volume="1.2" />
    <motorStopSound file="Sound/fendt312out.wav" pitchOffset="0.95" />  
    <aiMotorSound  file="Sound/fendt312idleAI.wav" pitchOffset="1" radius="35" innerRadius="20" volume="1.0" />
	
    <honkSound file="$dataS2/sounds/hornBig.wav" volume="1" radius="80" innerRadius="35" />

         <exhaustParticleSystems count="1">
         <exhaustParticleSystem1 node="31" file="PS/realParticles.i3d" />
         </exhaustParticleSystems>
	 <realExhaustParticleSystem parameter="exhaustingSystem" minAlpha="0.1" maxAlpha="1" />	

    <attacherJoints>
        <attacherJoint index="0>14|0|0" rotationNode="0>14" minRot="18 0 0" minRot2="-10 0 0" maxRot="2 0 0" rotationNode2="0>14|0" maxRot2="-2 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2" ptoOutputNode="0>36" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="0>15" translationNode="0>15|0" referenceNode="0>15|0|0" zScale="-1" />
            <topArm rotationNode="16" translationNode="16|0" referenceNode="16|0|0" zScale="-1" />
        </attacherJoint>
        <attacherJoint index="0>17|0|0" rotationNode="0>17" minRot="-10 0 0" minRot2="2 0 0" maxRot="4 0 0" rotationNode2="16|0" maxRot2="-4 0 0" maxTransLimit="0 0.4 0" maxRotLimit="0 0 20" moveTime="2" ptoOutputNode="0>30" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="0>18" translationNode="18|0" referenceNode="18|0|0" zScale="1" />
            <topArm rotationNode="19" translationNode="19|0" referenceNode="19|0|0" zScale="1" />
        </attacherJoint>
		<attacherJoint index="0>10" jointType="trailer" maxRotLimit="10 80 80" allowsLowering="false" allowsJointLimitMovement="false" ptoOutputNode="0>36" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d" />
                <attacherJoint index="0>22" jointType="trailerLow" maxRotLimit="10 50 50" allowsLowering="false" allowsJointLimitMovement="false" ptoOutputNode="0>36" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d" />
		<attacherJoint index="0>35" jointType="trailer" maxRotLimit="10 50 50" allowsLowering="false" allowsJointLimitMovement="false" ptoOutputNode="0>30" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d" />
		<attacherJoint index="0>35" jointType="trailerLow" maxRotLimit="10 50 50" allowsLowering="false" allowsJointLimitMovement="false" ptoOutputNode="0>30" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d" />
                <attacherJoint jointType="aloeFrontloader" index="0>49|0" allowsJointLimitMovement="false" />
        </attacherJoints>
 
        <characterNode index="33" cameraMinDistance="1.5" />
        <aiTrafficCollisionTrigger index="23" /> 
    
        <components count="5">
        <component1 centerOfMass="0 0.01 0.1" solverIterationCount="10" />
	<component2 centerOfMass="0 -0.8 0" solverIterationCount="190" />
	<component3 centerOfMass="0 -0.8 0" solverIterationCount="190" />
	<component4 centerOfMass="0 -0.8 0" solverIterationCount="190" />
	<component5 centerOfMass="0 -0.8 0" solverIterationCount="190" />
	
	<joint component1="0" component2="1" index="1>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
	<joint component1="0" component2="2" index="2>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
	<joint component1="0" component2="3" index="3>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
	<joint component1="0" component2="4" index="4>0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
			
	<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>
	
	<frontRightWheel wheelIndex="1" componentJointIndex="1" furrowDepth="0.23" fallSpeed="0.2" tireWidth="0.4" />
	<frontLeftWheel wheelIndex="2" componentJointIndex="2" furrowDepth="0.23" fallSpeed="0.2" tireWidth="0.4" />
	<backRightWheel wheelIndex="3" componentJointIndex="3" furrowDepth="0.23" fallSpeed="0.2" tireWidth="0.45" />
	<backLeftWheel wheelIndex="4" componentJointIndex="4" furrowDepth="0.23" fallSpeed="0.2" tireWidth="0.45" />
	
	<workExhaustParticleSystems count="1">
        <workExhaustParticleSystem1 node="42|0" file="$data/vehicles/particleSystems/exhaustParticleSystemBig.i3d" />
	</workExhaustParticleSystems>
	
	<increaseRpmDuringPloughing value="true" />

        <wheelParticleSystems file="PS/wheelParticleSystem.i3d" >
	<wheelParticleSystem node="0>48|0"  />
	<wheelParticleSystem node="0>48|1"  />
	<wheelParticleSystem node="0>48|2"  />
	<wheelParticleSystem node="0>48|3"  />
        </wheelParticleSystems>

        <Plandeka indexOpen="0>50" indexClose="0>49" />

        <loaderControlSystem node="0>49|1"/>

</vehicle>
