﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tractor_cylindered">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Deutz 6190 Agrotron TTV</en>
        <de>Deutz 6190 Agrotron TTV</de>
    </name>
    <filename>data/vehicles/steerable/deutz/deutzTTV6190.i3d</filename>

    <size width="3.5" length="6"/>

    <wheels autoRotateBackSpeed="2">
        <wheel rotSpeed="70" rotMax="30" rotMin="-30" driveMode="2" repr="0>0" driveNode="0>0|0" radius="0.69" deltaY="0.20" suspTravel="0.23" spring="40" damper="50" mass="0.1533" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="70" rotMax="30" rotMin="-30" driveMode="2" repr="0>1" driveNode="0>1|0" radius="0.69" deltaY="0.20" suspTravel="0.23" spring="40" damper="50" mass="0.1533" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="0>2" radius="0.909" deltaY="0.1" suspTravel="0.14" spring="80" damper="50" mass="0.25" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="0>3" radius="0.909" deltaY="0.1" suspTravel="0.14" spring="80" damper="50" mass="0.25" longitudalStiffness="0.9" lateralStiffness="2" />
    </wheels>
    <motor minRpm="100" maxRpm="750 1200 2400 510" maxTorques="-1 -1 -1 -1" brakeForce="6.5" lowBrakeForceScale="0.5" compensateWheelRadius="true" accelerations="1 1 1 1" lowBrakeForceSpeedLimit="1" forwardGearRatio="16.5" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="20">
		<torque rpm="100" torque="0.8"/>
		<torque rpm="2400" torque="0.9"/>
		<backwardTorque rpm="100" torque="1"/>
		<backwardTorque rpm="600" torque="0.5"/>
		<backwardTorque rpm="720" torque="0"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.25" deceleration="0.6" backwardDeceleration="0.7" />
    <fuelCapacity>495</fuelCapacity>
    <fuelUsage>0.0049</fuelUsage>
	<downForce>6</downForce>
	<bunkerSiloCompacter compactingScale="3"/>
	
    <components count="1">
        <component1 centerOfMass="0 0.01 0.1" solverIterationCount="10" />
    </components>
    <cameras count="2">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="18" >
			<raycastNode index="0>6"/>
			<raycastNode index="0>7"/>
		</camera1>
        <camera2 index="5" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" />
    </cameras>
	
    <lights>
        <light realLight="0>9" fakeLight="0>27" decoration="0>28" lightType="0"/>
        <light realLight="0>10" decoration="0>32" lightType="1"/>
    </lights>
	
	<brakeLights>
		<brakeLight index="0>33" />
	</brakeLights>
	
	<beaconLights>
		<beaconLight index="0>29" speed="0.016" />
	</beaconLights>
	
    <steering index="0>23|0" rotationSpeed="6"/>
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>8"/>

    <trailerAttacherJoints>
        <trailerAttacherJoint index="0>19" maxRotLimit="10 80 80" ptoOutputNode="0>20" ptoFilename="data/vehicles/steerable/powerTakeoff.i3d"/>
        <trailerAttacherJoint index="0>21" low="true" ptoOutputNode="0>20" ptoFilename="data/vehicles/steerable/powerTakeoff.i3d"/>
    </trailerAttacherJoints>

    <attacherJoints>
        <attacherJoint index="0>11|0|0" rotationNode="0>11" minRot="10 0 0" minRot2="-3 0 0" maxRot="-7 0 0" rotationNode2="0>11|0" maxRot2="7 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2.5" ptoOutputNode="0>20" ptoFilename="data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="0>12" translationNode="0>12|0" referenceNode="0>12|0|0" zScale="-1" />
            <topArm baseNode="0>13" filename="data/vehicles/steerable/upperLinkMedium.i3d" zScale="-1" />
        </attacherJoint>
        <attacherJoint index="0>16|0|0" rotationNode="0>16" minRot="-32 0 0" minRot2="23 0 0" maxRot="-4 0 0" rotationNode2="16|0" maxRot2="4 0 0" maxTransLimit="0 0.4 0" maxRotLimit="0 0 20" moveTime="2.5" ptoOutputNode="0>22" ptoFilename="data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="0>17" translationNode="17|0" referenceNode="17|0|0" zScale="1" />
            <topArm baseNode="0>18" filename="data/vehicles/steerable/upperLinkMedium.i3d" zScale="1" />
        </attacherJoint>
    </attacherJoints>

    <movingTools>
		<!-- attacher joint back bottom-->
        <movingTool index="0>12">
            <!-- cylinder 1 -->
            <dependentPart index="0>14" />
            <!-- cylinder 2 -->
            <dependentPart index="0>15" />            
			<!-- lowerlink -->
            <dependentPart index="0>31" />
        </movingTool>
		
		<!-- attacher joint front bottom-->
        <movingTool index="0>17">
            <!-- cylinder -->
            <dependentPart index="0>30" />
        </movingTool>
    </movingTools>

    <movingParts>
		<!-- attacher joint back bottom cylinder 1 -->
        <movingPart index="0>14" referencePoint="0>15|1" referenceFrame="0>" invertZ="true">
            <translatingPart index="0>14|0" />
        </movingPart>

        <!-- attacher joint back bottom cylinder 2 -->
        <movingPart index="0>15" referencePoint="0>12|0|1" localReferencePoint="0>15|2" referenceFrame="0>" invertZ="true">
            <dependentPart index="0>15|2" />
        </movingPart>
        <!-- attacher joint back bottom cylinder 2b -->
        <movingPart index="0>15|2" referencePoint="0>12|0|1" referenceFrame="0>15|0" invertZ="true">
        </movingPart>
		<!-- attacher joint front bottom cylinder -->
		<movingPart index="0>30" referencePoint="0>17|0|1" referenceFrame="0>">
            <dependentPart index="0>30|0" />
        </movingPart>
        <!-- lower link -->
        <movingPart index="0>31" referencePoint="0>12|0|2" referenceFrame="0>31" invertZ="true">
        </movingPart>
    </movingParts>

    <characterNode index="0>24" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="0>25" />
	<exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="0>26" file="data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="data/vehicles/steerable/deutz/deutzTTV6190_start.wav" pitchOffset="1" volume="1" />
    <motorSound file="data/vehicles/steerable/deutz/deutzTTV6190_idle.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.45" volume="1.15" radius="50" innerRadius="20" />
    <motorSoundRun file="data/vehicles/steerable/deutz/ttv_run2.wav" pitchOffset="0.5" pitchScale="0.033" pitchMax="1.4" volume="1.25" />
    <motorStopSound file="data/vehicles/steerable/deutz/deutzTTV7250_stop.wav" pitchOffset="1" volume="1" />
    <compressedAirSound file="data/vehicles/steerable/deutz/brakeBig.wav" pitchOffset="1" volume="1"/>
    <compressionSound file="data/vehicles/steerable/deutz/brakeBig.wav" pitchOffset="1" volume="1.5"/>

	<honkSound file="dataS2/sounds/horn.wav" volume="1" radius="80" innerRadius="35" />

    <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>
