<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tractor_articulatedAxis">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>FORD 846</en>
        <de>FORD 846</de>
    </name>
    <filename>Versatile_846.i3d</filename>

    <size width="5.5" length="10" />

    <wheels autoRotateBackSpeed="2">
        <wheel rotSpeed="0" driveMode="2" repr="0"   radius="0.94" deltaY="-0.02" suspTravel="0.1" spring="60" damper="30" mass="2" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="2" repr="1"   radius="0.94" deltaY="-0.02" suspTravel="0.1" spring="60" damper="30" mass="2" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="1>0" radius="0.94" deltaY="-0.02" suspTravel="0.05" spring="60" damper="30" mass="2" longitudalStiffness="0.9" lateralStiffness="2" />
        <wheel rotSpeed="0" driveMode="1" repr="1>1" radius="0.94" deltaY="-0.02" suspTravel="0.05" spring="60" damper="30" mass="2" longitudalStiffness="0.9" lateralStiffness="2" />
    </wheels>
	
     <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="0" differentialIndex2="1" /><!-- front-back -->
    </differentials>

    <motor torqueScale="2.455" minRpm="1000" maxRpm="2200" maxBackwardSpeed="15" brakeForce="18" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="19.5" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
        <torque normRpm="0.45" torque="0.9"/>
        <torque normRpm="0.5" torque="0.97"/>
        <torque normRpm="0.59" torque="1"/>
        <torque normRpm="0.72" torque="1"/>
        <torque normRpm="0.86" torque="0.88"/>
        <torque normRpm="1" torque="0.72"/>
    </motor>

    <fuelCapacity>1404</fuelCapacity>
    <fuelUsage>112</fuelUsage>
    <downForce>7</downForce>
	
	<bunkerSiloCompacter compactingScale="5"/>

    <cameras count="2">
        <camera1 index="0>2|0|0" rotatable="true" rotateNode="0>2|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35" >
			<raycastNode index="0>11|0"/>
			<raycastNode index="0>11|1"/>
			<raycastNode index="0>11|2"/>
			<raycastNode index="1>2"/>
		</camera1>
        <camera2 index="0>2|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" />
    </cameras>

	<lights count="2">
        <light realLight="0>4" fakeLight="0>8" decoration="0>9" lightType="0"/>
		<light decoration="0>21" lightType="0"/>
        <light realLight="1>4" decoration="1>5" lightType="1"/>
    </lights>

	<brakeLights>
		<brakeLight index="0>20" />
	</brakeLights>	
	
	<beaconLights>
		<beaconLight index="0>10|0" speed="0.016" />
	</beaconLights>

    <steering index="0>5|0" rotationSpeed="11"/>
    <enterReferenceNode index="0>" />
    <exitPoint index="0>3" />

    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="sounds/attach.wav" pitchOffset="1" />
    <motorStartSound file="sounds/ford_846_start.wav" pitchOffset="1" volume="2.1" />
    <motorSound file="sounds/ford_846_idle.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.55" volume="2" radius="35" innerRadius="15" />
    <motorSoundRun file="sounds/ford_846_run.wav" pitchOffset="0.5" pitchScale="0.025" pitchMax="1.05" volume="1" />
    <motorStopSound file="sounds/ford_846_stop.wav" pitchOffset="1" />
    <compressedAirSound file="sounds/brakeBig.wav" pitchOffset="1"/>
    <reverseDriveSound file="sounds/reverseDrivingBeep.wav" volume="0.5" />
	<cylinderedHydraulicSound file="sounds/hydraulicUp.wav" pitchOffset="0.75" volume="0.6" />
	<honkSound file="$dataS2/sounds/hornBig.wav" volume="1" radius="80" innerRadius="35" />
	
    <!--exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="0>7" file="particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems-->
	
	<exhaustEffects>
       <exhaustEffect index="0>7" filename="$data/vehicles/particleAnimations/shared/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0 0 0 10" minRpmScale="0.2" maxRpmScale="0.5" forwardXRotations="-100 0 -50" forwardZRotations="330 0 -50" steerXRotations="0 0 0" steerZRotations="-100 0 200" />
    </exhaustEffects>

    <characterNode index="0>6" cameraMinDistance="1.5" />

    <aiTrafficCollisionTrigger index="0>12" />
    
	 <attacherJoints>
        <attacherJoint index="1>9|0|0" rotationNode="1>9" rootNode="1>" minRot="10 0 0" minRot2="-1 0 0" maxRot="-8 0 0" rotationNode2="1>9|0" maxRot2="8 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2" ptoOutputNode="1>8" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d">
            <bottomArm rotationNode="1>10" translationNode="1>10|0" referenceNode="1>10|0|0" zScale="-1" />
        </attacherJoint>
        <!-- trailer attacher -->
		 <attacherJoint index="16" jointType="trailer" maxRotLimit="20 85 85" />
        <attacherJoint index="1>7|0" jointType="trailer" maxRotLimit="10 80 80" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="1>8" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d" rootNode="1>"/>
        <attacherJoint index="1>7" jointType="trailerLow" maxRotLimit="10 80 80" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="1>8" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d" rootNode="1>"/>
    </attacherJoints>
	
    <movingTools>
		<!-- attacher joint back bottom-->
        <movingTool index="1>10">
            <!-- cylinder 1 -->
            <dependentPart index="1>11" />
            <!-- cylinder 2 -->
            <dependentPart index="1>12" />           
			<!-- upper link -->
            <dependentPart index="1>13" />
        </movingTool>
    </movingTools>	
	
    <movingParts>
	
		<!-- attacher joint back bottom cylinder 1 -->
        <movingPart index="1>11" referencePoint="1>12|2" referenceFrame="0>" invertZ="false">
            <translatingPart index="1>11|0" />
        </movingPart>
		
        <!-- attacher joint back bottom cylinder 2 -->
        <movingPart index="1>12" referencePoint="1>10|0|1" localReferencePoint="1>12|0" referenceFrame="1>" invertZ="true">
            <dependentPart index="1>12|0" />
        </movingPart>

        <!-- attacher joint back bottom cylinder 2b -->
        <movingPart index="1>12|0" referencePoint="1>10|0|1" referenceFrame="1>12|1" invertZ="false">
        </movingPart>	        
		
		<!-- upperlink -->
        <movingPart index="1>13" referencePoint="1>10|1" referenceFrame="1>12|1" scaleZ="true" invertZ="true">
        </movingPart>

		<movingPart index="0>15" referencePoint="1>6" referenceFrame="1>" scaleZ="true" invertZ="true" isActiveDirty="true">
        </movingPart>			
		<movingPart index="1>3" referencePoint="14" referenceFrame="1>" scaleZ="true" isActiveDirty="true">
        </movingPart>
	</movingParts>	
	 
    <articulatedAxis componentJointIndex="0" anchorActor="0" rotSpeed="-35" rotMax="33" rotMin="-33">
		<dependentPart index="0>15" />
		<dependentPart index="1>3" />
	</articulatedAxis>
		
    <components count="2">
        <component1 centerOfMass="0 0.1 1.75" solverIterationCount="35" />
        <component2 centerOfMass="0 0.1 -2" solverIterationCount="35" />
		<joint component1="0" component2="1" index="0>13" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
    </components>
    
    <schemaOverlay file="textures/vehicleSchema.png" fileSelected="textures/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>
