<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="412VarioPanorama2">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Fendt 412</en>
        <de>Fendt 412</de>
    </name>
    <description></description>
    <filename>fendt412.i3d</filename>
    <size width="3.0" length="7.0" />
    <wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="70" rotMax="32" rotMin="-32" driveMode="2" repr="0" driveNode="0|0|0" radius="0.80" deltaY="0.1" suspTravel="0.2" spring="180" damper="10" mass="0.2" />
        <wheel rotSpeed="70" rotMax="32" rotMin="-32" driveMode="2" repr="1" driveNode="1|0|0" radius="0.80" deltaY="0.1" suspTravel="0.2" spring="180" damper="10" mass="0.2" />
        <wheel rotSpeed="0" driveMode="1" repr="2" radius="1.0" deltaY="0.1" suspTravel="0.2" spring="180" damper="10" mass="0.26" />
        <wheel rotSpeed="0" driveMode="1" repr="3" radius="1.0" deltaY="0.1" suspTravel="0.2" spring="180" damper="10" mass="0.26" />
    </wheels>
    <motor minRpm="100" maxRpm="400 775 1950 550" maxTorques="2.0 2.5 -1 1.7" brakeForce="7" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" forwardGearRatio="11.5" backwardGearRatio="9" differentialRatio="1" rpmFadeOutRange="50">
		<torque rpm="2350" torque="4.3"/>

		<backwardTorque rpm="250" torque="5"/>
		<backwardTorque rpm="450" torque="1.1"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.10" deceleration="0.6" />
    <fuelCapacity>270</fuelCapacity>
    <fuelUsage>0.0027</fuelUsage>
    <downForce>7</downForce>
    <cameras count="2">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="50" />
        <camera2 index="5" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
    </cameras>
    <lights count="1">
        <light1 index="12" />
    </lights>

	<lightCones>
		<lightCone index="28" />	
	</lightCones>

	<lightCoronas>
		<lightCorona index="13" />	
	</lightCoronas>

    <steering index="20|0" rotationSpeed="6"/>
    <enterReferenceNode index="0>" />
    <exitPoint index="9" />
    <cuttingAreas count="0">
        <!--cuttingArea1 startIndex="6" widthIndex="7" heightIndex="8" losing="true"/-->
    </cuttingAreas>

    	<trailerAttacherJoints>
        <trailerAttacherJoint index="10|0" shaft="37" />
        <trailerAttacherJoint index="22" low="true" shaft="37" />
<trailerAttacherJoint index="34" />	
</trailerAttacherJoints>
    <tipCamera index="11" />
    
    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="$data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="sounds/fendt716start.wav" pitchOffset="1" volume="1.0" />
    <motorSound file="sounds/fendt716idle.wav" pitchOffset="1" pitchScale="0.03" pitchMax="1.65" volume="1.0" />
    <motorSoundRun file="sounds/820.wav" pitchOffset="0.5" pitchScale="0.02" pitchMax="1.05" volume="0.5" />
    <motorStopSound file="sounds/fendt716out.wav" pitchOffset="1" />
    <compressedAirSound file="$data/vehicles/steerable/deutz/compressedAir.wav" pitchOffset="1" volume="1.0"/>
    <compressionSound file="$data/vehicles/steerable/deutz/compressorWork.wav" pitchOffset="1" volume="1.5"/>
    <aiMotorSound  file="sounds/fendt716idleAI.wav" pitchOffset="1" radius="50" innerRadius="20" volume="1.25" />

    <internalStartSound file="Ares_Int_Start.wav" />
    <internalSound file ="Ares_Int_Idle.wav" />
    <internalStopSound file="Ares_Int_Stop.wav" />

    <exhaustParticleSystems count="1">
        <exhaustParticleSystem1 position="-0.723 3.057 -0.217" rotation="31.8156 0 44.246" file="$data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>
    <attacherJoints>
          <attacherJoint index="14|0|0" rotationNode="14" maxRot="-12 0 0" rotationNode2="14|0" maxRot2="8 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="1.5" shaft="37">
            <bottomArm rotationNode="15" translationNode="15|0" referenceNode="15|0|0" zScale="-1" />
            <topArm rotationNode="16" translationNode="16|0" referenceNode="16|0|0|0" zScale="-1" />
        </attacherJoint>
        <attacherJoint index="17|0|0" rotationNode="17" maxRot="10 0 0" rotationNode2="17|0" maxRot2="-7 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="1.5" shaft="38">
            <bottomArm rotationNode="18" translationNode="18|0" referenceNode="18|0|0" zScale="1" />
            <topArm rotationNode="19" translationNode="19|0" referenceNode="19|0|0" zScale="1" />
        </attacherJoint>
<!-- frontloader -->
        <attacherJoint jointType="frontloader" index="41|0|0|1|0" allowsJointLimitMovement="false" allowsLowering="false" />
    </attacherJoints>
    
    <characterNode index="21" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="23" />     
    <components count="1">
        <component1 centerOfMass="0 0 0" solverIterationCount="10" />
    </components>
	
    	<beaconLights>
		<beaconLight index="44|0|2" speed="0.0175" />
	</beaconLights>

<honkSound file="$dataS2/sounds/horn.wav" client="$dataS2/sounds/horn3D.wav" volume="1" radius="50" innerRadius="20" />

<moveableAttacher index="10" maxY="1.43861" minY="0.9286" /> 

<operatingHours posX="0.7543" posY="0.1715" />
<ESLimiter posX="0.7543" posY="0.1715" />

		<lightsaddon lightsStayOn="false">
			<light type="highbeam" index="38|0" real="38|0|1" beam="38|0|2" />
                        <light type="work" index="33" real="33|0" beam="33|2" inputName="frontwork" helptext="frontwork" stayOn="false"/>
			<light type="work" index="34" real="34|0" beam="34|2" inputName="rearwork" helptext="rearwork" stayOn="false"/>
			<light type="dirLeft" index="38|1" />
			<light type="dirRight" index="38|2" />
			<light type="parkLeft" index="38|3" />
			<light type="parkRight" index="38|4" />
			<light type="brake" index="38|5" />
		        <light type="reverse" index="38|6" />
		        <light type="work" index="40" inputName="flschutz818" stayOn="true"/>
                        <light type="work" index="41"  inputName="Frontlader818" stayOn="true"/>
		</lightsaddon>
	
	<mouseControls>
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/dafs_arm1.png" mouseButton="LEFT" mouseAxis="Y" axis="AXIS_FRONTLOADER_ARM" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/dafs_tool.png" mouseButton="LEFT" mouseAxis="X" axis="AXIS_FRONTLOADER_TOOL" />
    </mouseControls>

 <movingTools>
        <movingTool index="41|0" attacherJointIndices="1" componentJointIndex="0" anchorActor="0" rotSpeed="20" rotAcceleration="80" rotMax="5" rotMin="-80" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="true" speedFactor="0.3">
            <dependentPart index="0>41|0|1" />
        </movingTool>
        <movingTool index="41|0|0|1" attacherJointIndices="1" anchorActor="0" rotSpeed="35" rotAcceleration="300" rotMax="160" rotMin="-5" axis="AXIS_FRONTLOADER_TOOL" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_TOOL" invertMouseAxis="false" speedFactor="0.3">
            <dependentPart index="0>41|0|0|0" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- arm cylinder -->
        <movingPart index="0>41|0|1" referencePoint="0>39|0" referenceFrame="0>39|0">
            <translatingPart index="0>41|0|1|0" />
        </movingPart>


        <!-- main hinge -->
        <movingPart index="0>41|0|0|0" referencePoint="0>41|0|0|1|1" localReferencePoint="0>41|0|0|0|0" referenceFrame="0>41|0|0|1|1">
            <dependentPart index="0>41|0|0|0|0" />
            <dependentPart index="0>41|0|2" />
        </movingPart>
        <!-- front top hinge -->
        <movingPart index="0>41|0|0|0|0" referencePoint="0>41|0|0|1|1" referenceFrame="0>41|0|0|1">
        </movingPart>

        <!-- tool cylinder -->
        <movingPart index="0>41|0|2" referencePoint="0>41|0|0|0|1" referenceFrame="0>41|0|0">
            <translatingPart index="0>41|0|2|0" />
        </movingPart>
    </movingParts>
<Fenders>
       <FenderLK index="0|0"/>
       <FenderRK index="1|0"/>
       <FenderPoint index="20|0"/>
</Fenders>
  <animParts>
	<animPart index="24|2" id="heckfenster818" showHelp="false" rotMin="0 0 0" rotMax="63 0 0" moveTime="2" />
	<animPart index="24|8" id="frontfenster818" showHelp="false" rotMin="0 0 0" rotMax="-65 0 0" moveTime="2" />
	<animPart index="24|0" id="tuerLinks818" showHelp="false" rotMin="0 0 0" rotMax="-7 46 0" moveTime="1" />
	<animPart index="24|1" id="tuerRechts818" showHelp="false" rotMin="0 0 0" rotMax="-7 -46 0" moveTime="1" />                                  
	<animPart index="18|0|1|4" id="unterlenker818" showHelp="true" rotMin="-70 0 0" rotMax="-2 0 0" moveTime="2" />
	<animPart index="18" id="unterlenker818" showHelp="false" rotMin="-15 0 0" rotMax="25 0 0" moveTime="2" />
	<animPart index="24|19" id="panoramadachluke818" showHelp="false" rotMin="0 0 0" rotMax="17 0 0" moveTime="2" />
	</animParts>
</vehicle>
