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

    <size width="3.5" length="6.5"/>
	
	<wheels autoRotateBackSpeed="1" twinWheelsCheckString="FilipagemCase340">
		<wheel rotSpeed="50" rotMax="30" rotMin="-30" driveMode="1" repr="2>1" driveNode="2>1|0|0" radius="0.763" deltaY="0.1" suspTravel="0.16" spring="140" damper="50" mass="0.40" brakeRatio="1"/>
        <wheel rotSpeed="50" rotMax="30" rotMin="-30" driveMode="1" repr="3>1" driveNode="3>1|0|0" radius="0.763" deltaY="0.1" suspTravel="0.16" spring="140" damper="50"  mass="0.40" brakeRatio="1"/>
        <wheel rotSpeed="0" driveMode="2" repr="4>1" radius="0.965" deltaY="0.15" suspTravel="0.15" spring="360" damper="50" mass="0.5" brakeRatio="1"/>
        <wheel rotSpeed="0" driveMode="2" repr="5>1" radius="0.965" deltaY="0.15" suspTravel="0.15" spring="360" damper="50" mass="0.5" brakeRatio="1"/>
   </wheels>
	
	<dustwheels>
        <dustwheel size="0.6"/>
        <dustwheel size="0.6"/>
        <dustwheel size="0.6" />
        <dustwheel size="0.6" />
		<dustwheel size="0.6" />
        <dustwheel size="0.6" />
    </dustwheels>
	<driveGroundParticleSystemsForDustWheels>
		<driveGroundParticleSystem node="0>24" file="groundPS/dustParticleSystem.i3d" minSpeed="15" maxSpeed="30" direction="0" />
	</driveGroundParticleSystemsForDustWheels>

	<accelerationSpeed maxAcceleration="1" deceleration="1" brakeSpeed="3" />
    <fuelCapacity>350</fuelCapacity>
    <fuelUsage>0</fuelUsage>
	<downForce>0</downForce>
	<bunkerSiloCompacter compactingScale="2.4"/>
	<waitForTurnTime>1600</waitForTurnTime>

	<realMaxVehicleSpeed>50</realMaxVehicleSpeed> 
	<realMaxReverseSpeed>16</realMaxReverseSpeed> 
	<realBrakeMaxMovingMass>23.1</realBrakeMaxMovingMass> 
	<realBrakingDeceleration>5</realBrakingDeceleration>
	<aiTractorTurnRadius>12</aiTractorTurnRadius>
	<turnEndDistance>6</turnEndDistance>
	
	<realRollingResistance>0.025</realRollingResistance>  <!-- std rr = 0.045 -->
	<realVehicleFlotationFx>1</realVehicleFlotationFx> <!-- duals = avoid digging the soil when slipping -->
	<realMinSpeedForMaxPower>4</realMinSpeedForMaxPower> <!-- km/h, should be equal to speed in first gear at motor peak torque -->
	<realVehicleSteeringAngle>29</realVehicleSteeringAngle> <!-- articulated tractor : we need to define the steering angle by ourselve -->
	
	<realTyreGripFx>1.2</realTyreGripFx> 

	<realSCX>5</realSCX> 
	<realPtoPowerKW>200</realPtoPowerKW> 
	<realMaxFuelUsage>11.6</realMaxFuelUsage>

	<realSpeedBoost minSpeed="15">29</realSpeedBoost> 
	<realImplementNeedsBoost minPowerCons="22">29</realImplementNeedsBoost> 
	<realMaxBoost>36</realMaxBoost> 


	<realDisplaySlip>true</realDisplaySlip> 

    <cameras count="2">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="24" >
			<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>20|1" decoration="0>20|0" lightType="0"/>
        <light realLight="0>10" decoration="0>21" lightType="1"/>
    </lights>
	
	<brakeLights>
		<brakeLight index="0>23" />
	</brakeLights>
	
	<beaconLights>
		<beaconLight index="0>22|0" speed="0.016" />
		<beaconLight index="0>22|1" speed="0.016" />
	</beaconLights>
	
    <lightsaddon lightsStayOn="true" blinkSpeed="0.5">
		<light type="dirLeft" index="0>39|0" />
		<light type="dirRight" index="0>39|1" />
		<light type="parkLeft" index="0>39|0" />
		<light type="parkRight" index="0>39|1" />
		<light type="reverse" index="0>39|2" />
		<fillLevelWarning percent="80" />
		<flashers soundfile="Sounds/blinktick.wav" lowPitch="0.6" highPitch="0.8" volume="0.3" autoreturn="true" tolerance="0.5" pitch="0.5" />
    </lightsaddon>
	
	<steering index="0>11|0" rotationSpeed="12"/>
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>8"/>
	
	<exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="0>19" file="PS/realParticles.i3d" />
    </exhaustParticleSystems>
	<realExhaustParticleSystem hasSecondPS="true" parameter="exhaustingSystem" minAlpha="0.1" maxAlpha="1" >
      <SecondParticleSystem node="0>19" position="0 0.05 0.05" rotation="0 0 0" file="PS/newRealParticles.i3d" />
   </realExhaustParticleSystem>

    <trailerAttacherJoints>
		<trailerAttacherJoint index="0>32|0|0|0" maxRotLimit="10 80 80" ptoOutputNode="0>15" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d"/>
        <trailerAttacherJoint index="0>16" low="true" ptoOutputNode="0>15" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d"/>
    </trailerAttacherJoints>
	<moveableAttacher index="0>32|0|0" maxY="0.06" minY="-0.44" />
	
	    <attacherJoints>
        <attacherJoint index="0>12|0|0" rotationNode="0>12" minRot="20 0 0" minRot2="-13 0 0" maxRot="5 0 0" rotationNode2="0>12|0" maxRot2="-5 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2.5" ptoOutputNode="0>15" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="0>13" translationNode="0>13|0" referenceNode="0>13|0|0" zScale="-1" />
			<topArm rotationNode="0>14" translationNode="0>14|1" referenceNode="0>14|1|0" zScale="-1" />
        </attacherJoint>
    </attacherJoints>

	<frontAxle rotNode="1>1"/> 
	<hydraulics count="7">
	<hydraulic1 index="0>25|2" punch="0>25|2|0" punchFixpoint="0>25|2|0|0" fixpoint="1>1|0" />
	<hydraulic2 index="0>25|3" punch="0>25|3|0" punchFixpoint="0>25|3|0|0" fixpoint="1>1|1" />
	<hydraulic3 index="0>25|1" punch="0>25|1|0" punchFixpoint="0>25|1|0|0" fixpoint="2>1|0|2" />
	<hydraulic4 index="0>25|0" punch="0>25|0|0" punchFixpoint="0>25|0|0|0" fixpoint="3>1|0|2" />
	
	<hydraulic5 index="3>1|0|1" punch="3>1|0|1|0" punchFixpoint="3>1|0|1|0|0" fixpoint="2>1|0|1" />
	<hydraulic6 index="1>1|3" fixpoint="2>1|0|3" />
	<hydraulic7 index="1>1|2" fixpoint="3>1|0|3" />
	</hydraulics>

    <movingTools>
		<!-- attacher joint back bottom-->
        <movingTool index="0>13">
        <dependentPart index="0>26" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>26" referencePoint="0>13|0|1" localReferencePoint="0>26|0" referenceFrame="0>" >
            <dependentPart index="0>26|0" />
			<dependentPart index="0>27" />
			<dependentPart index="0>14|0" />
        </movingPart>
        <!-- attacher joint back bottom cylinder 2b -->
        <movingPart index="0>26|0" referencePoint="0>13|0|1" referenceFrame="0>13|0|1" >
			<dependentPart index="0>26|0|0" />
			<dependentPart index="0>26|0|1" />
        </movingPart>
		<movingPart index="0>26|0|0" referencePoint="0>13|0|1|0" referenceFrame="0>13|0|1|0">
            <translatingPart index="0>26|0|0|0" />
        </movingPart>
		<movingPart index="0>26|0|1" referencePoint="0>13|0|1|1" referenceFrame="0>13|0|1|1">
            <translatingPart index="0>26|0|1|0" />
        </movingPart>
		<!-- hydraulic -->
		<movingPart index="0>27" referencePoint="0>26|1" referenceFrame="0>26|1">
            <translatingPart index="0>27|0" />
        </movingPart>
		<movingPart index="0>14|0" referencePoint="0>13|0|2|0" referenceFrame="0>">
            <translatingPart index="0>14|1|0|0|0" />
        </movingPart>
				
		<!-- steering-->
		<movingPart index="3>1|0|1" referencePoint="2>1|0|1" referenceFrame="3>" isActiveDirty="true" playSound="false" scaleZ="true">
        </movingPart>
    </movingParts>

    <characterNode index="0>17" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="0>18" />
	
    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="$data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="Sounds/JD7R_start.ogg" pitchOffset="1" volume="1.5" />
    <motorSound file="Sounds/JD7R_idle.ogg" pitchOffset="1" pitchScale="0.014" pitchMax="1.44" volume="1.5" radius="35" innerRadius="15" />
    <motorSoundRun file="Sounds/7R_run11_Iong_Master.ogg" pitchOffset="0.525" pitchScale="0.023" pitchMax="1.2" volume="1.8" />
    <motorStopSound file="Sounds/JD7R_stop.ogg" pitchOffset="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="Sounds/hornBig.wav" volume="1" radius="80" innerRadius="35" />
	
	<components count="6">
        <component1 centerOfMass="0 0.01 0.3" solverIterationCount="10" realMassWanted="13.7" />
		<component2 centerOfMass="0 -1 0" solverIterationCount="190" realMassWanted="2.5" />
		<component3 centerOfMass="0 -0.8 0" solverIterationCount="190" realMassWanted="0.8" />
		<component4 centerOfMass="0 -0.8 0" solverIterationCount="190" realMassWanted="0.8" />
		<component5 centerOfMass="0 -0.8 0" solverIterationCount="190" realMassWanted="0.7" />
		<component6 centerOfMass="0 -0.8 0" solverIterationCount="190" realMassWanted="0.7" />
			
		<joint component1="0" component2="1" index="1>0" rotLimit="0 0 4" 	transLimit="0 0 0" breakable="false"/>		
		<joint component1="1" component2="2" index="2>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>		
		<joint component1="1" component2="3" index="3>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>	
		<joint component1="0" component2="4" index="4>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>		
		<joint component1="0" component2="5" index="5>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>
		
		
		<collisionPair component1="0" component2="1" enabled="false"/>
		<collisionPair component1="1" component2="2" enabled="false"/>
		<collisionPair component1="1" component2="3" enabled="false"/>
		<collisionPair component1="1" component2="4" enabled="false"/>
		<collisionPair component1="1" component2="5" enabled="false"/>
		<collisionPair component1="0" component2="2" enabled="false"/>
		<collisionPair component1="0" component2="3" enabled="false"/>
		<collisionPair component1="0" component2="4" enabled="false"/>
		<collisionPair component1="0" component2="5" enabled="false"/>
    </components>
	
	<frontRightWheel wheelIndex="1" componentJointIndex="2" furrowDepth="0.16" fallSpeed="0.4" tireWidth="0.35" />
	<frontLeftWheel  wheelIndex="2" componentJointIndex="3" furrowDepth="0.16" fallSpeed="0.4" tireWidth="0.35" />
	<backRightWheel  wheelIndex="3" componentJointIndex="4" furrowDepth="0.26" fallSpeed="0.4" tireWidth="0.4" />
	<backLeftWheel   wheelIndex="4" componentJointIndex="5" furrowDepth="0.26" fallSpeed="0.4" tireWidth="0.4" />
	
	<weightPositions count="1">
		<weightPosition1 count="18" >
			<weight1 index="0>42|0" mass="40"/>
			<weight2 index="0>42|1" mass="40"/>
			<weight3 index="0>42|2" mass="40"/>
			<weight4 index="0>42|3" mass="40"/>
			<weight5 index="0>42|4" mass="40"/>
			<weight6 index="0>42|5" mass="40"/>
			<weight7 index="0>42|6" mass="40"/>
			<weight8 index="0>42|7" mass="40"/>
			<weight9 index="0>42|8" mass="40"/>
			<weight10 index="0>42|9" mass="40"/>
			<weight11 index="0>42|10" mass="40"/>
			<weight12 index="0>42|11" mass="40"/>
			<weight13 index="0>42|12" mass="40"/>
			<weight14 index="0>42|13" mass="40"/>
			<weight15 index="0>42|14" mass="40"/>
			<weight16 index="0>42|15" mass="40"/>
			<weight17 index="0>42|16" mass="40"/>
			<weight18 index="0>42|17" mass="40"/>
			
		</weightPosition1>	
	</weightPositions>
	
	<dirt dirtInterval="2" cleaningInterval="10" updateInterval="0.15" >
		<dirtComponent index="1>1" />
		<dirtComponent index="2>1|0" />
		<dirtComponent index="2>1|0|0" />
		<dirtComponent index="3>1|0" />
		<dirtComponent index="3>1|0|0" />
		<dirtComponent index="4>1" />
		<dirtComponent index="5>1" />
		<dirtComponent index="0>13|0" />
		<dirtComponent index="0>14|0" />
		<dirtComponent index="0>14|1|0|0" />
		<dirtComponent index="0>25|0" />
		<dirtComponent index="0>25|1" />
		<dirtComponent index="0>25|2" />
		<dirtComponent index="0>25|3" />
		<dirtComponent index="0>26" />
		<dirtComponent index="0>26|0" />
		<dirtComponent index="0>26|0|0" />
		<dirtComponent index="0>26|0|0|0" />
		<dirtComponent index="0>26|0|1" />
		<dirtComponent index="0>26|0|1|0" />
		<dirtComponent index="0>27" />
		<dirtComponent index="0>27|0" />
		<dirtComponent index="0>28" />
		<dirtComponent index="0>32|0" />
		<dirtComponent index="0>32|0|0" />
		<dirtComponent index="0>32|0|1" />
		<dirtComponent index="0>32|4" />
		<dirtComponent index="0>32|5" />
		<dirtComponent index="0>32|6|0" />
		<dirtComponent index="0>32|6|1" />
		<dirtComponent index="0>32|6|2" />
		<dirtComponent index="0>32|6|3" />
		<dirtComponent index="0>32|7" />
		<dirtComponent index="0>32|8" />
		<dirtComponent index="0>32|9" />
		<dirtComponent index="0>32|9|0" />
		<dirtComponent index="0>32|9|2" />
		<dirtComponent index="0>32|9|3" />
		<dirtComponent index="0>32|10" />
		<dirtComponent index="0>32|10|0" />
		<dirtComponent index="0>32|11" />
		<dirtComponent index="0>32|12|0" />
		<dirtComponent index="0>32|12|1" />
		<dirtComponent index="0>32|12|2" />
		<dirtComponent index="0>32|12|3" />
		<dirtComponent index="0>42|0" />
		<dirtComponent index="0>42|1" />
		<dirtComponent index="0>42|2" />
		<dirtComponent index="0>42|3" />
		<dirtComponent index="0>42|4" />
		<dirtComponent index="0>42|5" />
		<dirtComponent index="0>42|6" />
		<dirtComponent index="0>42|7" />
		<dirtComponent index="0>42|8" />
		<dirtComponent index="0>42|9" />
		<dirtComponent index="0>42|10" />
		<dirtComponent index="0>42|11" />
		<dirtComponent index="0>42|12" />
		<dirtComponent index="0>42|13" />
		<dirtComponent index="0>42|14" />
		<dirtComponent index="0>42|15" />
		<dirtComponent index="0>42|16" />
		<dirtComponent index="0>42|17" />
	
    </dirt>
	
    <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="1 0" rotation="0" invertX="false" />
    </schemaOverlay>

</vehicle>
