﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="combine_cylindered">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Fahr M66</en>
        <de>Fahr M66</de>
    </name>
    <filename>data/vehicles/steerable/fahr/fahrM66.i3d</filename>

    <size width="4" length="7.5" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel rotSpeed="-58" rotMax="38" rotMin="-38" driveMode="2" driveNode="2|0" repr="2" radius="0.38" positionX="1.229" positionY="0.728" positionZ="-1.922" deltaY="0.2" suspTravel="0.2" spring="60" damper="20" mass="0.1322" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="-58" rotMax="38" rotMin="-38" driveMode="2" driveNode="3|0" repr="3" radius="0.38" positionX="-1.221" positionY="0.728" positionZ="-1.922" deltaY="0.2" suspTravel="0.2" spring="60" damper="20" mass="0.1322" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="0" radius="0.755" positionX="1.126" positionY="1.006" positionZ="1.905" deltaY="0.2" suspTravel="0.2" spring="60" damper="20" mass="0.4" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="1" radius="0.755" positionX="-1.127" positionY="1.006" positionZ="1.905" deltaY="0.2" suspTravel="0.2" spring="60" damper="20" mass="0.4" longitudalStiffness="0.9" lateralStiffness="2" />
    </wheels>
    <motor minRpm="100" maxRpm="650 1050 2100" maxTorques="-1 -1 -1" brakeForce="7" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="2" compensateWheelRadius="true" accelerations="1 1 1" forwardGearRatio="34" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="20">
		<torque rpm="100" torque="0.25"/>
		<torque rpm="2100" torque="0.4"/>

		<backwardTorque rpm="600" torque="0.55"/>
		<backwardTorque rpm="720" torque="0"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.5" deceleration="0.6" backwardDeceleration="0.7" />
    <fuelCapacity>100</fuelCapacity>
    <fuelUsage>0.001</fuelUsage>
    <downForce>4</downForce>

    <cameras count="2">
        <camera1 index="7|0" rotatable="true" rotateNode="7" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="18" >
			<raycastNode index="0>25"/>
			<raycastNode index="0>26"/>
		</camera1>
        <camera2 index="8" rotatable="true" rotateNode="8" limit="true" rotMinX="-1.2" rotMaxX="1.4" transMin="0" transMax="0" />
    </cameras>

	<lights count="2">
        <light realLight="0>13|0" fakeLight="0>22" decoration="0>23" lightType="0"/>
        <light realLight="0>13|1" decoration="0>30" lightType="1"/>
    </lights>

	<brakeLights>
		<brakeLight index="0>31" />
	</brakeLights>	

	<beaconLights>
		<beaconLight index="24" speed="0.016" />
	</beaconLights>

    <steering index="14|0" rotationSpeed="6"/>
    <attacherJoints>
        <attacherJoint jointType="cutter" index="9|0|0" rotationNode="9" maxRot="18 0 0" rotationNode2="9|0" maxRot2="0 0 0" moveTime="2.5" />
    </attacherJoints>
    <enterReferenceNode index="0>" />
    <exitPoint index="10" />
    <pipeSound file="data/vehicles/steerable/fahr/old_pipe.wav" pitchOffset="1" pitchScale="0.03" pitchMax="1" />
    <threshingStartSound file="data/vehicles/steerable/fahr/fahrM66_work_start.wav" pitchOffset="1" pitchScale="0.001" pitchMax="1.2" volume="1" />
    <threshingSound file="data/vehicles/steerable/fahr/fahrM66_work.wav" pitchOffset="1" pitchScale="0.001" pitchMax="1.2" volume="1" radius="50"  innerRadius="20" volume3D="0.75" />
    <threshingStopSound file="data/vehicles/steerable/fahr/fahrM66_work_stop.wav" pitchOffset="1" pitchScale="0.001" pitchMax="1.2" volume="1" />
	<attachSound file="data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="data/vehicles/steerable/fahr/fahrM66_start.wav" pitchOffset="0.93" volume="1" />
    <motorSound file="data/vehicles/steerable/fahr/fahrM66_idle.wav" pitchOffset="0.93" pitchScale="0.02" pitchMax="1.05" volume="1" radius="50" innerRadius="20" volume3D="0.75" />
    <motorStopSound file="data/vehicles/steerable/fahr/fahrM66_stop.wav" pitchOffset="0.93" volume="1" />

	<honkSound file="dataS2/sounds/horn.wav" volume="1" radius="80" innerRadius="35" />

    <cuttingAreas count="1">
        <cuttingArea1 startIndex="4" widthIndex="5" heightIndex="6"/>
    </cuttingAreas>
    <chopperBlind index="11" />

    <pipe numStates="2" unloadingStates="2" raycastNodeIndex="0>12|0">
        <node index="12" rotationSpeeds="4 20 0">
            <state1 rotation="0 0 0" />
            <state2 rotation="18 -90 0"/>
        </node>
    </pipe>

    <pipeParticleSystems>
        <pipeParticleSystem type="wheat"  node="0>12|3" file="data/vehicles/particleSystems/wheatParticleSystemLong.i3d" />
        <pipeParticleSystem type="barley" node="0>12|3" file="data/vehicles/particleSystems/wheatParticleSystemLong.i3d" />
        <pipeParticleSystem type="rape"   node="0>12|3" file="data/vehicles/particleSystems/rapeParticleSystemLong.i3d" />
        <pipeParticleSystem type="maize"  node="0>12|3" file="data/vehicles/particleSystems/wheatParticleSystemLong.i3d" />
    </pipeParticleSystems>

    <movingTools>
        <!-- pipe -->
        <movingTool index="0>12" componentJointIndex="0" anchorActor="0">
			<dependentPart index="0>28" />
		</movingTool>
    </movingTools>	

    <movingParts>
        <movingPart index="0>27" referencePoint="0>3|1" referenceFrame="0>" scaleZ="true" isActiveDirty="true" playSound="false">
        </movingPart>

        <movingPart index="0>28" referencePoint="0>12|2" referenceFrame="0>" scaleZ="true">
        </movingPart>
    </movingParts>	

	<exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="0>29" file="data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

    <chopperParticleSystems>
        <chopperParticleSystem type="rape" position="0 1.0961 -3" rotation="0 0 0" file="data/vehicles/particleSystems/threshingChopperPSRapeSmall.i3d" />
        <chopperParticleSystem type="maize" position="0 1.0961 -3" rotation="0 0 0" file="data/vehicles/particleSystems/threshingChopperPSMaizeSmall.i3d" />
    </chopperParticleSystems>

    <strawParticleSystems toggleTime="3500">
        <strawParticleSystem type="wheat" position="0 0.90856 -3.5518" rotation="0 0 0" file="data/vehicles/particleSystems/threshingStrawParticleSystemSmall.i3d" />
        <strawParticleSystem type="barley" position="0 0.90856 -3.5518" rotation="0 0 0" file="data/vehicles/particleSystems/threshingStrawParticleSystemSmall.i3d" />
    </strawParticleSystems>

    <grainTankCapacity>1500</grainTankCapacity>
    <grainTankUnloadingCapacity>85</grainTankUnloadingCapacity>

    <grainTankFruitTypes fruitTypes="wheat rape maize barley" />

    <combineSize>1</combineSize>
    <characterNode index="16" cameraMinDistance="1.5" />
    <strawAreas count="1">
        <strawArea1 startIndex="17" widthIndex="18" heightIndex="19" />
    </strawAreas>

    <combineTrailerTriggers>
        <combineTrailerTrigger index="20" />
    </combineTrailerTriggers>
    <aiTrafficCollisionTrigger index="21" />

    <components count="2">
        <component1 centerOfMass="0 0 -0.95" solverIterationCount="10" />
        <component2 solverIterationCount="10" />
        <joint component1="0" component2="1" index="0>12|1" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>

    <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="0 0" rotation="0" invertX="false" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
    </schemaOverlay>

</vehicle>
