﻿<?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>Deutz 5465 H</en>
		<de>Deutz 5465 H</de>
	</name>
    <filename>data/vehicles/steerable/deutz/deutz5465H.i3d</filename>

    <size width="4.8" length="10" lengthOffset="-1"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel rotSpeed="-58" rotMax="35" rotMin="-35" driveMode="2" repr="2" radius="0.56" positionX="1.229" positionY="0.728" positionZ="-1.922" deltaY="0.2" suspTravel="0.2" spring="60" damper="20" mass="0.0674" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="-58" rotMax="35" rotMin="-35" driveMode="2" repr="3" radius="0.56" positionX="-1.229" positionY="0.728" positionZ="-1.922" deltaY="0.2" suspTravel="0.2" spring="60" damper="20" mass="0.0674" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="0" radius="0.89" positionX="1.127" positionY="1.006" positionZ="1.905" deltaY="0.17" suspTravel="0.2" spring="60" damper="20" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="1" radius="0.89" positionX="-1.127" positionY="1.006" positionZ="1.905" deltaY="0.17" suspTravel="0.2" spring="60" damper="20" mass="0.2" longitudalStiffness="0.9" lateralStiffness="2" />
    </wheels>
    <motor minRpm="100" maxRpm="650 1055 2100" maxTorques="-1 -1 -1" brakeForce="6" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" compensateWheelRadius="true" accelerations="1 1 1" forwardGearRatio="34" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="20">
		<torque rpm="100" torque="0.13"/>
		<torque rpm="2100" torque="0.16"/>

		<backwardTorque rpm="600" torque="0.3"/>
		<backwardTorque rpm="720" torque="0"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.5" deceleration="0.6" backwardDeceleration="0.7" />
    <fuelCapacity>350</fuelCapacity>
    <fuelUsage>0.0035</fuelUsage>
    <downForce>4</downForce>

    <cameras count="2">
        <camera1 index="4|0|0" rotatable="true" rotateNode="4|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="7" transMax="18" >
			<raycastNode index="0>20"/>
			<raycastNode index="0>21"/>
		</camera1>
        <camera2 index="4|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" />
	</cameras>

    <lights>
        <light realLight="0>5" fakeLight="0>17" decoration="0>18" lightType="0"/>
    </lights>

	<brakeLights>
		<brakeLight index="0>22" />
	</brakeLights>

	<beaconLights>
		<beaconLight index="19|0" speed="0.016" />
		<beaconLight index="19|1" speed="0.016" />
	</beaconLights>

    <steering index="8|0" rotationSpeed="6"/>

    <attacherJoints>
        <attacherJoint jointType="cutter" index="10|0|0" rotationNode="10" minRot="-18 0 0" maxRot="1 0 0" rotationNode2="10|0" maxRot2="0 0 0" moveTime="2.5" />
        <attacherJoint index="16" jointType="trailerLow" allowsJointLimitMovement="false" allowsLowering="false" maxRotLimit="10 50 50" maxTransLimit="0 0 0"/>
	</attacherJoints>

    <enterReferenceNode index="0>" />
    <exitPoint index="6" />

    <pipeSound file="data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="1" />
    <threshingStartSound file="data/vehicles/steerable/deutz/threshing_start.wav" pitchOffset="1" />
    <threshingSound file="data/vehicles/steerable/deutz/threshing_idle.wav" pitchOffset="1" pitchScale="0.001" pitchMax="1.2" radius="35" innerRadius="25" />
    <threshingStopSound file="data/vehicles/steerable/deutz/threshing_out.wav" pitchOffset="1" />
    <attachSound file="data/vehicles/steerable/deutz/attach_cutter.wav" pitchOffset="1" />
    <motorStartSound file="data/vehicles/steerable/deutz/combine_start.wav" pitchOffset="1" />
    <motorSound file="data/vehicles/steerable/deutz/combine_idle.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.4" radius="35" innerRadius="25" />
    <motorStopSound file="data/vehicles/steerable/deutz/combine_out.wav" pitchOffset="1" />
    <reverseDriveSound file="data/vehicles/steerable/deutz/reverseDrivingBeep.wav" volume="0.5" />
    <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"/>

	<honkSound file="dataS2/sounds/horn.wav" volume="1" radius="80" innerRadius="35" />

    <pipe numStates="2" unloadingStates="2" raycastNodeIndex="7|0" raycastDistance="6">
        <node index="7" rotationSpeeds="6 25 0">
            <state1 rotation="0 0 0"/>
            <state2 rotation="20 -90 0"/>
        </node>
		<node index="12" rotationSpeeds="4 25 0">
            <state1 rotation="0 0 0"/>
            <state2 rotation="0 -90 0"/>
        </node>
	</pipe>

    <movingTools>
        <!-- pipe -->
        <movingTool index="0>7" componentJointIndex="0" anchorActor="0"></movingTool>
    </movingTools>

    <pipeParticleSystems>
        <pipeParticleSystem type="wheat" node="7|0" rotation="0 90 0" file="data/vehicles/particleSystems/wheatParticleSystem.i3d" />
        <pipeParticleSystem type="barley" node="7|0" rotation="0 90 0" file="data/vehicles/particleSystems/wheatParticleSystem.i3d" />
        <pipeParticleSystem type="rape" node="7|0" rotation="0 90 0" file="data/vehicles/particleSystems/rapeParticleSystem.i3d" />
        <pipeParticleSystem type="maize" node="7|0" rotation="0 90 0" file="data/vehicles/particleSystems/wheatParticleSystem.i3d" />
    </pipeParticleSystems>

    <chopperParticleSystems toggleTime="4300">
        <chopperParticleSystem type="rape" node="15" file="data/vehicles/particleSystems/threshingChopperPSRapeSmall.i3d" />
        <chopperParticleSystem type="maize" node="15" file="data/vehicles/particleSystems/threshingChopperPSMaizeSmall.i3d" />
    </chopperParticleSystems>

    <strawParticleSystems toggleTime="4300">
        <strawParticleSystem type="wheat" node="15" file="data/vehicles/particleSystems/threshingStrawParticleSystemSmall.i3d" />
        <strawParticleSystem type="barley" node="15" file="data/vehicles/particleSystems/threshingStrawParticleSystemSmall.i3d" />
    </strawParticleSystems>

    <grainTankCapacity>4200</grainTankCapacity>
    <grainTankUnloadingCapacity>210</grainTankUnloadingCapacity>
    <grainTankFruitTypes fruitTypes="wheat rape maize barley" />

    <combineSize>2</combineSize>
    <characterNode index="9" cameraMinDistance="1.5" />

    <strawAreas count="1">
        <strawArea1 startIndex="11|0" widthIndex="11|1" heightIndex="11|2" />
    </strawAreas>

    <combineTrailerTriggers>
        <combineTrailerTrigger index="13" />
    </combineTrailerTriggers>
    <aiTrafficCollisionTrigger index="14" />

    <components count="2">
        <component1 centerOfMass="0 0.05 -0.95" solverIterationCount="10" />
        <component2 solverIterationCount="10" />
        <joint component1="0" component2="1" index="0>7|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>
