﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tractor_visualWheels">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <de>Case IH Farmall H</de>
        <en>Case IH Farmall H</en>
    </name>
    <filename>data/vehicles/steerable/caseIH/caseIHFarmallH.i3d</filename>

    <size width="3" length="4.5" />

    <wheels autoRotateBackSpeed="2.2">
        <wheel rotSpeed="70" rotMax="36" rotMin="-36" driveMode="2" repr="0" driveNode="0|0" radius="0.309" deltaY="0.15" suspTravel="0.2" spring="45" damper="20" mass="0.274" />
        <wheel rotSpeed="0" driveMode="1" repr="1" radius="0.635" deltaY="0.13" suspTravel="0.15" spring="45" damper="20" mass="0.4" />
        <wheel rotSpeed="0" driveMode="1" repr="2" radius="0.635" deltaY="0.13" suspTravel="0.15" spring="45" damper="20" mass="0.4" />
    </wheels>

    <motor minRpm="100" maxRpm="950 1300 2000 1105" maxTorques="-1 -1 -1 -1" brakeForce="8.5" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" compensateWheelRadius="true" accelerations="1 1 1 1" forwardGearRatio="39" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="20">
		<torque rpm="2000" torque="0.21"/>

		<backwardTorque rpm="500" torque="0.85"/>
		<backwardTorque rpm="600" torque="0"/>
    </motor>
    <accelerationSpeed maxAcceleration="0.3" deceleration="0.6" backwardDeceleration="0.7" />
    <fuelCapacity>50</fuelCapacity>
    <fuelUsage>0.0003</fuelUsage>
    <downForce>4</downForce>

    <cameras count="2">
        <camera1 index="3|0|0" rotatable="true" rotateNode="3|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="18" >
			<raycastNode index="0>14"/>
			<raycastNode index="0>15"/>
		</camera1>
        <camera2 index="3|1" rotatable="true" limit="true" rotMinX="-1" rotMaxX="1.4" transMin="0" transMax="0" />
    </cameras>

	<lights>
        <light realLight="0>4|0" fakeLight="0>12|0" decoration="0>11|0" lightType="0"/>
        <light realLight="0>4|1" fakeLight="0>12|1" decoration="0>11|1" lightType="1"/>
    </lights>

    <exitPoint index="0>5" />
    <steering index="0>7|0" rotationSpeed="12"/>

    <enterReferenceNode index="0>" />

    <trailerAttacherJoints>
        <trailerAttacherJoint index="0>8" low="true" maxRotLimit="20 85 85" ptoOutputNode="0>13" ptoFilename="data/vehicles/steerable/powerTakeoff.i3d"/>
    </trailerAttacherJoints>
	
    <attacherJoints>
        <attacherJoint index="0>16|0|0" rotationNode="0>16" minRot="24 0 0" minRot2="-15 0 0" maxRot="9 0 0" rotationNode2="0>16|0" maxRot2="-9 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2.5" ptoOutputNode="0>13" ptoFilename="data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="0>17" translationNode="0>17|0" referenceNode="0>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>17">
            <!-- cylinder 1 -->
            <dependentPart index="0>19" />
            <!-- cylinder 2 -->
            <dependentPart index="0>20" />
        </movingTool>
    </movingTools>
	
    <movingParts>
		<!-- attacher joint back bottom cylinder 1 -->
        <movingPart index="0>19" referencePoint="0>20|3" referenceFrame="0>" invertZ="false">
            <translatingPart index="0>19|0" />
        </movingPart>

        <!-- attacher joint back bottom cylinder 2 -->
        <movingPart index="0>20" referencePoint="0>17|0|1" localReferencePoint="0>20|2" referenceFrame="0>" invertZ="true">
            <dependentPart index="0>20|2" />
            <dependentPart index="0>19" />
        </movingPart>
        <!-- attacher joint back bottom cylinder 2b -->
        <movingPart index="0>20|2" referencePoint="0>17|0|1" referenceFrame="0>20|0" invertZ="false">
        </movingPart>
    </movingParts>	

    <attachSound file="data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="data/vehicles/steerable/caseIH/caseIHFarmallH_start.wav" pitchOffset="1" volume="1.4" />
    <motorSound file="data/vehicles/steerable/caseIH/caseIHFarmallH_idle.wav" pitchOffset="1" pitchScale="0.0089" pitchMax="1.4" volume="1.4" />
    <motorStopSound file="data/vehicles/steerable/caseIH/caseIHFarmallH_stop.wav" pitchOffset="1" />
	<motorSoundRun file="data/vehicles/steerable/caseIH/caseIHFarmallH_run.wav" pitchOffset="0.4" pitchScale="0.025" pitchMax="1" volume="0.8" />
	<honkSound file="dataS2/sounds/horn.wav" volume="1" radius="80" innerRadius="35" />

    <exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="0>9" file="data/vehicles/particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

    <characterNode index="0>6" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="0>10" />

	<visualWheels>
		<visualWheel index="0>0|1|0" wheelIndex="0" />
		<visualWheel index="0>0|2|0" wheelIndex="0" />
	</visualWheels>

    <components count="1">
        <component1 centerOfMass="0 0 0.5" solverIterationCount="10" />
    </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="1 0" rotation="0" invertX="false" />
    </schemaOverlay>

</vehicle>
