<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Kubota">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <de>Kubota KX71-2</de>
        <en>Kubota KX71-2</en>
    </name>
    <filename>KubotaKX71_3D/Liebherr.i3d</filename>

    <size width="3.5" length="7"/>

    <wheels autoRotateBackSpeed="3">
        <wheel rotSpeed="1" restLoad="2.8" repr="0>0" driveNode="0>0|0" showSteeringAngle="false" forcePointRatio="0.3"  radius="0.2" width="0.99" initialCompression="50" suspTravel="0.1" spring="240" damper="230"         maxLatStiffness="20" mass="2" hasTyreTracks="true" tyreTrackAtlasIndex="5" tireType="crawler" />
        <wheel rotSpeed="1" restLoad="2.8" repr="0>1" driveNode="0>1|0" showSteeringAngle="false" forcePointRatio="0.3" radius="0.2" width="0.99" initialCompression="50" suspTravel="0.1" spring="240" damper="230"         maxLatStiffness="20" mass="2" hasTyreTracks="true" tyreTrackAtlasIndex="5" tireType="crawler" />
        <wheel rotSpeed="1" restLoad="2.0" repr="0>2" driveNode="0>2|0" showSteeringAngle="false" forcePointRatio="0.3" radius="0.2" width="0.84" initialCompression="50" suspTravel="0.1" spring="240" damper="230" maxLongStiffness="10" maxLatStiffness="40" mass="2"  />
        <wheel rotSpeed="1" restLoad="2.0" repr="0>3" driveNode="0>3|0" showSteeringAngle="false" forcePointRatio="0.3" radius="0.2" width="0.84" initialCompression="50" suspTravel="0.1" spring="240" damper="230" maxLongStiffness="10" maxLatStiffness="40" mass="2"  />
	<wheel rotSpeed="1" restLoad="2.8" repr="0>16" driveNode="0>16|0" showSteeringAngle="false" forcePointRatio="0.3"  radius="0.2" width="0.84" initialCompression="50" suspTravel="0.1" spring="240" damper="230"         maxLatStiffness="20" mass="2"  />
        <wheel rotSpeed="1" restLoad="2.8" repr="0>17" driveNode="0>17|0" showSteeringAngle="false" forcePointRatio="0.3" radius="0.2" width="0.84" initialCompression="50" suspTravel="0.1" spring="240" damper="230"         maxLatStiffness="20" mass="2"  />
        <wheel rotSpeed="1" restLoad="2.0" repr="0>12" driveNode="0>12|0" showSteeringAngle="false" forcePointRatio="0.3" radius="0.2" width="0.84" initialCompression="50" suspTravel="0.1" spring="240" damper="230" maxLongStiffness="10" maxLatStiffness="40" mass="2"  />
        <wheel rotSpeed="1" restLoad="2.0" repr="0>13" driveNode="0>13|0" showSteeringAngle="false" forcePointRatio="0.3" radius="0.2" width="0.84" initialCompression="50" suspTravel="0.1" spring="240" damper="230" maxLongStiffness="10" maxLatStiffness="40" mass="2"  />
	<wheel rotSpeed="1" restLoad="2.0" repr="0>14" driveNode="0>14|0" showSteeringAngle="false" forcePointRatio="0.3" radius="0.2" width="0.84" initialCompression="50" suspTravel="0.1" spring="240" damper="230" maxLongStiffness="10" maxLatStiffness="40" mass="2"  />
        <wheel rotSpeed="1" restLoad="2.0" repr="0>15" driveNode="0>15|0" showSteeringAngle="false" forcePointRatio="0.3" radius="0.2" width="0.84" initialCompression="50" suspTravel="0.1" spring="240" damper="230" maxLongStiffness="10" maxLatStiffness="40" mass="2"  />
    </wheels>

    <ackermannSteering rotSpeed="60" rotMax="47" rotCenterWheel1="3" rotCenterWheel2="4" />

    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" 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.2" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>

    <motor torqueScale="1.267" minRpm="1000" maxRpm="2200" maxBackwardSpeed="15" brakeForce="12" lowBrakeForceScale="0.45" lowBrakeForceSpeedLimit="1" minForwardGearRatio="38" maxForwardGearRatio="130" minBackwardGearRatio="38" maxBackwardGearRatio="130">
        <torque normRpm="0.45" torque="1.9"/>
        <torque normRpm="0.5" torque="1.97"/>
        <torque normRpm="0.59" torque="2"/>
        <torque normRpm="0.72" torque="2"/>
        <torque normRpm="0.86" torque="1.88"/>
        <torque normRpm="1" torque="1.72"/>
    </motor>

    <fuelCapacity>180</fuelCapacity>
    <fuelUsage>22</fuelUsage>

    <cameras count="3">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="35">
        </camera1>
        <camera2 index="0>6|2" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" />
	<camera3 index="0>6|11" rotatable="false" isInside="false" />
    </cameras>

    <TracWheelsRight index="0>20|0" node="0>20|0|1" animationClip="TracRight1" sped="10">
		<rotatingPart index="0>18|0" radius="1" />
        <rotatingPart index="0>18|1" radius="1" />
	</TracWheelsRight>
	
    <TracWheelsLeft index="0>21|0" node="0>21|0|1" animationClip="TracLeft1" sped="10">
		<rotatingPart index="0>19|0" radius="-1" />
        <rotatingPart index="0>19|1" radius="-1" />
	</TracWheelsLeft>

	
	<TerraTracLeft index="19|0"/>
	<TerraTracRight index="18|0"/>

	<TracBodyLeft index="19" />
	<TracBodyRight index="18"/> 

    <lights>
                <light realLight="0>6|6|0|0" decoration="0>6|6|0|1" lightType="0"/>
		<light realLight="0>6|6|4|0" decoration="0>6|6|4|1" lightType="1"/>
		<light realLight="0>6|0|0|6" decoration="0>6|0|0|7" lightType="2"/>
    </lights>

    <brakeLights>
        <brakeLight index="0>6|6|1" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>6|6|2|0" />
        <turnSignalRight index="0>6|6|2|1" />
    </turnSignals>
	
	<reverseLights>
        <reverseLight index="0>6|6|3" />
    </reverseLights>

	<beaconLights>
        <beaconLight index="0>6|10|1" speed="0.015" filename="$data/vehicles/shared/beaconLight03.i3d" />
    </beaconLights>
	
    <mirrors>
                <mirror index="0>6|8|0" />
    </mirrors>
	
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>6|5"/>

    <foldingParts posDirectionText="unfold_SupportFeet" negDirectionText="fold_SupportFeet" >
        <foldingPart animationName="movePillars" speedScale="1" />
    </foldingParts>
	
	<enterAnimation name="enterAnimation" />

    <animations>
		<animation name="movePillars">
			<part node="0>7" startTime="0" endTime="5" startRot="-0.5 0 0" endRot="-25 0 0" />				
		</animation>	
    </animations>

    <characterNode index="0>6|3|1|0" cameraMinDistance="1.5" />
	
	<mouseControls>
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/arm1_rotX.png" axis="AXIS_FRONTLOADER_ARM" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/arm1_rotY.png" axis="AXIS_FRONTLOADER_ARM2" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/arm2_rot.png" axis="AXIS_FRONTLOADER_TOOL" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/arm2_trans.png" axis="AXIS_FRONTLOADER_TOOL2" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/grab_rotY.png" axis="AXIS_FRONTLOADER_TOOL3" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/grab_rotX.png" axis="AXIS_FRONTLOADER_TOOL4" />
    </mouseControls>

	<movingTools>
		<movingTool index="0>6" componentJointIndex="0" attacherJointIndices="1" anchorActor="0" rotSpeed="50" rotAcceleration="400" speedFactor="0.7" rotationAxis="2" rotMax="720" rotMin="-720" axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_TOOL" invertMouseAxis="true" >
			<dependentPart index="0>6|0" />
			<dependentPart index="0>6|0|0" />
			<dependentPart index="0>6|0|0|0" />
			<dependentPart index="0>6|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0|7" />
		</movingTool>
		<movingTool index="0>6|0" componentJointIndex="0" attacherJointIndices="1"  anchorActor="0" rotSpeed="25" rotAcceleration="200" rotMax="40" rotMin="-45" axis="AXIS_FRONTLOADER_ARM" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_ARM"invertMouseAxis="false" speedFactor="0.6" >
			<dependentPart index="0>6|0|0" />
			<dependentPart index="0>6|0|0|0" />
			<dependentPart index="0>6|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0|7" />
		</movingTool>
		<movingTool index="0>6|0|0|0" componentJointIndex="0" attacherJointIndices="1" anchorActor="0" rotSpeed="25" rotAcceleration="200" rotMax="25" rotMin="-95" axis="AXIS_FRONTLOADER_ARM2" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_ARM2" invertMouseAxis="false" speedFactor="0.6" >
			<dependentPart index="0>6|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0|7" />
		</movingTool>

		<movingTool index="0>6|0|0|0|0" componentJointIndex="0" attacherJointIndices="1" anchorActor="0" rotSpeed="25" rotAcceleration="200" rotMax="55" rotMin="-90" axis="AXIS_FRONTLOADER_TOOL2" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_TOOL2" invertMouseAxis="false" speedFactor="0.6" >
			<dependentPart index="0>6|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0|7" />
		</movingTool>
		<movingTool index="0>6|0|0|0|3" attacherJointIndices="1" anchorActor="0" rotSpeed="25" rotAcceleration="200" rotMax="-80" rotMin="-190" axis="AXIS_FRONTLOADER_TOOL2" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_TOOL2" invertMouseAxis="false" speedFactor="0.6" >
			<dependentPart index="0>6|0|0|0|0|0|0|0" />
			<dependentPart index="0>6|0|0|0|0|0|0|7" />
		</movingTool>
		<movingTool index="0>7" componentJointIndex="1" anchorActor="0" rotSpeed="25" rotAcceleration="200" rotMax="3" rotMin="-25" axis="AXIS_LIFT_BLADE" invertAxis="false" mouseAxis="AXIS_LIFT_BLADE" invertMouseAxis="false" speedFactor="0.2" >
			<dependentPart index="0>7|1" />
		</movingTool>
	</movingTools>


    	<attacherJoints>
        	<attacherJoint jointType="frontloader" index="0>6|0|0|0|0|0|0" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="100 100 100" rotLimitDamping="100 100 100" transLimitSpring="100 100 100" transLimitDamping="100 100 100"/>
        	<attacherJoint jointType="frontloader" index="0>6|0|0|0|0|0|2" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="100 100 100" rotLimitDamping="100 100 100" transLimitSpring="100 100 100" transLimitDamping="100 100 100"/>
    	</attacherJoints>

	<movingParts>
		<movingPart index="0>6|0|0|1|0" referencePoint="0>6|0|0|0|4" referenceFrame="0>6|0|0|0|4" isActiveDirty="true" >
            <translatingPart index="0>6|0|0|1|0|0" />
        </movingPart>
		<movingPart index="0>6|0|1|0" referencePoint="0>6|0|0|2" referenceFrame="0>6|0|0|2" isActiveDirty="true" >
            <translatingPart index="0>6|0|1|0|0" />
        </movingPart>
		<movingPart index="0>6|0|0|0|1|0" referencePoint="0>6|0|0|0|3|0|1" referenceFrame="0>6|0|0|0|3|0|1" isActiveDirty="true" >
            <translatingPart index="0>6|0|0|0|1|0|0" />
        </movingPart>
		<movingPart index="0>6|0|0|0|3|0|0" referencePoint="0>6|0|0|0|0|0|1" referenceFrame="0>6|0|0|0|0|0|1" isActiveDirty="true" >
        </movingPart>
		<movingPart index="0>6|1|0" referencePoint="0>6|0|2" referenceFrame="0>6|0|2" isActiveDirty="true" >
            <translatingPart index="0>6|1|0|0" />
        </movingPart>
		<movingPart index="0>10|0" referencePoint="0>7|0" referenceFrame="0>7|0" isActiveDirty="true" >
            <translatingPart index="0>10|0|0" />
        </movingPart>
	</movingParts>
	
    <aiTrafficCollisionTrigger index="0>11" />

    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="$data/vehicles/shared/truck_attach.wav" pitchOffset="1" />
    <motorStartSound file="sound/miniExcavatorStart.wav" pitchOffset="0.825" volume="1" />
    <motorSound file="sound/miniExcavatorIdle.wav" pitchOffset="0.825" pitchScale="0.0095" pitchMax="1.65" volume="1" radius="50" innerRadius="20" />
    <motorSoundRun file="sound/Liebherr_regime.wav" pitchOffset="0.75" pitchScale="0.0095" pitchMax="1.45" volume="1" />
	<motorStopSound file="sound/miniExcavatorStop.wav" pitchOffset="0.825" volume="1" />
	<cylinderedHydraulicSound file="$data/vehicles/steerable/liebherr/liebherrL538_hydraulic.wav" pitchOffset="0.85" volume="0.55" />
	<honkSound file="$data/vehicles/shared/horn.wav" volume="1" radius="70" innerRadius="10" />
    <compressedAirSound file="sound/handbrake.wav" pitchOffset="1" volume="1.25"/>
    <compressionSound file="sound/handbrake.wav" pitchOffset="1" volume="1.5"/>
    <reverseDriveSound file="sound/reverseDrivingBeep.wav" volume="1" />
   
    <driveGroundParticleSystems>
        <driveGroundParticleSystem node="0>" position="-0.906 0 -2.192" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="3"/>
        <driveGroundParticleSystem node="0>" position="0.906 0 -2.192"  rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="4"/>
        <driveGroundParticleSystem node="0>" position="-1.07 0 1.437" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
        <driveGroundParticleSystem node="0>" position="1.074 0 1.437"  rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
    </driveGroundParticleSystems>
	
	<components count="1">
	<component1 centerOfMass="0 0 0" solverIterationCount="10" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0">
        <attacherJoint position="1 0" rotation="0" invertX="false" />
    </schemaOverlay>

</vehicle>
