<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Cat345B">
	<annotation>Original Fredzaza / LS13 conversion by Getsome2030 / Mouse Control by ieg53i / Edit Goelm.</annotation>
    <name>
        <en>Cat 345B</en>
        <de>Cat 345B</de>
    </name>
    <filename>Cat345B.i3d</filename>
	
	<wheels autoRotateBackSpeed="1.8">
        <wheel rotSpeed="60" rotMax="70" rotMin="-70" restLoad="2.8" repr="0" forcePointRatio="0.2" driveNode="0|0" radius="0.700" width="1.5" initialCompression="50" suspTravel="0.1" spring="1500" damper="30"  mass="1" hasTyreTracks="false" tyreTrackAtlasIndex="5" tireType="crawler" />
        <wheel rotSpeed="60" rotMax="70" rotMin="-70" restLoad="2.8" repr="1" forcePointRatio="0.2" driveNode="1|0" radius="0.700" width="1.5" initialCompression="50" suspTravel="0.1" spring="1500" damper="30"  mass="1" hasTyreTracks="false" tyreTrackAtlasIndex="5" tireType="crawler" />
        <wheel rotSpeed="-60" rotMax="70" rotMin="-70" restLoad="2.0" repr="2" forcePointRatio="0.3" driveNode="0>2" radius="0.700" width="1.5" initialCompression="50" suspTravel="0.1" spring="1500" damper="30"  mass="1" hasTyreTracks="true" tyreTrackAtlasIndex="5" tireType="crawler" />
        <wheel rotSpeed="-60" rotMax="70" rotMin="-70" restLoad="2.0" repr="3" forcePointRatio="0.3" driveNode="0>3" radius="0.700" width="1.5" initialCompression="50" suspTravel="0.1" spring="1500" damper="30"  mass="1" hasTyreTracks="true" tyreTrackAtlasIndex="5" tireType="crawler" />
		<wheel rotSpeed="60" rotMax="70" rotMin="-70" restLoad="2.8" repr="0>15" forcePointRatio="0.2" driveNode="0>15|0" radius="0.700" width="1.5" initialCompression="50" suspTravel="0.1" spring="1500" damper="30"  mass="1"  />
        <wheel rotSpeed="60" rotMax="70" rotMin="-70" restLoad="2.8" repr="0>16" forcePointRatio="0.2" driveNode="0>16|0" radius="0.700" width="1.5" initialCompression="50" suspTravel="0.1" spring="1500" damper="30"  mass="1"  />
        <wheel rotSpeed="-60" rotMax="70" rotMin="-70" restLoad="2.0" repr="0>17" forcePointRatio="0.3" driveNode="0>17" radius="0.700" width="1.5" initialCompression="50" suspTravel="0.1" spring="1500" damper="30"  mass="1"  />
        <wheel rotSpeed="-60" rotMax="70" rotMin="-70" restLoad="2.0" repr="0>18" forcePointRatio="0.3" driveNode="0>18" radius="0.700" width="1.5" initialCompression="50" suspTravel="0.1" spring="1500" damper="30"  mass="1"  />
    </wheels>
	 <!--ackermannSteering rotSpeed="60" rotMax="47" rotCenterWheel1="3" rotCenterWheel2="4" /--->
    <size width="5.8" length="15" lengthOffset="-0.2"/>
	
	<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.3" wheelIndex1="4" wheelIndex2="5" /> <!-- front left-right -->
		<differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="6" wheelIndex2="7" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
		<differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="2" differentialIndex2="3" /> <!-- front-back -->
		<differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="4" differentialIndex2="5" /> <!-- front-back -->
	</differentials>
	
	
	<motor torqueScale="3.267" minRpm="1000" maxRpm="2200" maxBackwardSpeed="15" brakeForce="12" lowBrakeForceScale="0.45" lowBrakeForceSpeedLimit="1" minForwardGearRatio="140" maxForwardGearRatio="130" minBackwardGearRatio="38" 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>720</fuelCapacity>
    <fuelUsage>120</fuelUsage>
	
	<bunkerSiloCompacter compactingScale="12"/>
	
	
	<crawlers>
		 <crawler index="0>14|1|0" speedRefWheel="1" scrollSpeed="0.162" shaderParameterName="offsetUV" shaderParameterComponent="1" length="1">
            <rotatingPart index="0>8|1" radius="0.6094" />
			<rotatingPart index="0>8|2" radius="0.6094" />
		</crawler>
        <crawler index="0>14|0|0" speedRefWheel="2" scrollSpeed="0.162" shaderParameterName="offsetUV" shaderParameterComponent="1" length="1">
            <rotatingPart index="0>7|1" radius="0.6094" />
            <rotatingPart index="0>7|2" radius="0.6094" />
		</crawler>
	</crawlers>
	
	
    <cameras count="2">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="30" />
        <camera2 index="6|0|4" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
		<!--camera3 index="6|0|0|0|1|1" rotatable="true" limit="true" rotMinX="0" rotMaxX="90" transMin="-0.5" transMax="7" /-->
    </cameras>
	
	<lights>
		<light realLight="0>6|0|5" decoration="0>6|0|7" lightType="0"/>
    </lights>
	
	<beaconLights stayOn="true">
		<beaconLight index="0>6|0|9|0|0" speed="0.015" filename="$data/vehicles/shared/beaconLight03.i3d" />
	</beaconLights>
	
    <enterReferenceNode index="0"/>
    <exitPoint index="5" />
	
    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="$data/vehicles/shared/truck_attach.wav" pitchOffset="1" />
    <motorStartSound file="sound/Liebherr_EngineStart.wav" pitchOffset="0.6" volume="1.0" />
    <motorSound file="sound/Liebherr_Engine.wav" pitchOffset="0.6" pitchScale="0.01" pitchMax="1.00" volume="0.4" />
    <motorSoundRun file="sound/Liebherr_regime.wav" pitchOffset="0.3" pitchScale="0.015" pitchMax="1.00" volume="1" />
    <motorStopSound file="sound/Liebherr_EngineStop.wav" pitchOffset="0.6" volume="1" />
    <compressedAirSound file="$data/vehicles/shared/brakeBig.wav" pitchOffset="1" volume="1.25"/>
    <compressionSound file="$data/vehicles/shared/brakeBig.wav" pitchOffset="1" volume="1.5"/>
    <honkSound file="sound/hornBig.wav" volume="1" radius="80" innerRadius="35" />
    <reverseDriveSound file="sound/Liebherr_reverse.wav" volume="1" />
    <cylinderedHydraulicSound file="$data/vehicles/steerable/liebherr/liebherrL538_hydraulic.wav" pitchOffset="0.85" volume="0.55" />
	    
	<exhaustEffects>
        <exhaustEffect index="6|0|10" filename="$data/vehicles/particleAnimations/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.09" maxRpmScale="0.4" forwardXRotations="-120 0 -10" forwardZRotations="0 0 0" steerXRotations="0 0 0" steerZRotations="50 0 -70" />
    </exhaustEffects>
	
	<characterNode index="6|0|11"/>
	
	<attacherJoints>
        	<attacherJoint index="6|0|0|0|1|0|0|0|0" jointType="trailer" maxRotLimit="20 85 85" minRotRotationOffset="0" allowsJointLimitMovement="false" />
        	<attacherJoint jointType="frontloader" index="6|0|0|0|1|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>
--
	<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="6|0|0" attacherJointIndices="2"  anchorActor="0" rotSpeed="15" rotAcceleration="200" rotMax="40" rotMin="-60" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM"invertMouseAxis="true" speedFactor="0.3" >
			<dependentPart index="6|0|1" /> <!--Main Arm Hydraulics-->
			<dependentPart index="6|0|0|0" /><!--Secondary Arm-->
		</movingTool>
        <movingTool index="6|0|0|0" attacherJointIndices="2" anchorActor="0" rotSpeed="15" rotAcceleration="200" rotMax="15" rotMin="-95" axis="AXIS_FRONTLOADER_ARM2" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM2" invertMouseAxis="false" speedFactor="0.3" >
			<dependentPart index="6|0|0|1"/> <!--Secondary Hydraulics-->
			<dependentPart index="6|0|0|0" /><!--Secondary Arm-->
		</movingTool>
        <movingTool index="0>6|0" attacherJointIndices="2" anchorActor="0" rotSpeed="15" rotAcceleration="400" speedFactor="0.8" rotationAxis="2" rotMax="720" rotMin="-720" axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_TOOL" invertMouseAxis="false" >
			<dependentPart index="6|0|1" /> <!--Main Arm Hydraulics-->
		</movingTool>
        <movingTool index="0>6|0|0|0|3|0" attacherJointIndices="2" anchorActor="0" rotSpeed="25" rotAcceleration="400" speedFactor="0.6" rotationAxis="1" rotMax="93" rotMin="0" axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_TOOL2" invertMouseAxis="false" >
			<dependentPart index="6|0|0|0|0"/> <!--Tool Hydraulics-->
			<dependentPart index="6|0|0|0" /><!--Secondary Arm-->
		</movingTool>
        <movingTool index="0>6|0|0|0|5|0" attacherJointIndices="2" anchorActor="0" rotSpeed="25" rotAcceleration="400" speedFactor="0.5" rotationAxis="1" rotMax="130" rotMin="0" axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_TOOL2" invertMouseAxis="false" >
		</movingTool>
        <movingTool index="0>6|0|0|0|1|0" attacherJointIndices="2" anchorActor="0" rotSpeed="25" rotAcceleration="400" speedFactor="0.5" rotationAxis="1" rotMax="130" rotMin="0" axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_TOOL2" invertMouseAxis="false" >
		</movingTool>
	</movingTools>
	
	<movingParts>
						<!-- main cylinder -->
        <movingPart index="6|0|1" referencePoint="6|0|1|0|0|0" referenceFrame="6|0|0|2">
            <translatingPart index="6|0|1|0|0" />
		</movingPart>
						<!-- Secondary cylinder -->
        <movingPart index="6|0|0|1" referencePoint="6|0|0|1|0|0" referenceFrame="6|0|0|1|0|0">
            <translatingPart index="6|0|0|1|0" />	
        </movingPart>
						<!-- Tool cylinder -->
		<movingPart index="6|0|0|0|0" referencePoint="6|0|0|0|0|0|0|0" referenceFrame="6|0|0|0|0|0|0|0">
            <translatingPart index="6|0|0|0|0|0|0" />			
        </movingPart>
	</movingParts>
		
	<tourelle index="6|0" minRot="0 -720 0" maxRot="0 720 0" rotTime="50" touchRotLimit="10" />
	
	<verin1 indexverin="6|0|0|1" indextige="6|0|0|1|0" translationtige="6|0|0|1|0|0" />
	<verin2 indexverin="6|0|1|0" indextige="6|0|1|0|0" translationtige="6|0|1|0|0|0" />
	<hydraulicMainArm indexHydraulic="6|0|0|0|0|0" indexPunch="6|0|0|0|0|0|0" translationPunch="6|0|0|0|0|0|0|0" />
		
	<bras1 index="6|0|0|0" minRot="-90 0 0" maxRot="20 0 0" rotTime="7" pivotverin="6|0|0|0|4" />
	<bras2 index="6|0|0" minRot="-50 0 0" maxRot="35 0 0" rotTime="7" pivotverin="6|0|0|2" />
	
	<workingArm index="6|0|0|0|1|0" minRot="130 0 0" maxRot="0 0 0" rotTime="5" fixPoint="6|0|0|0|1|0|1|0" />
    <workingArm2 index="6|0|0|0|5|0" minRot="130 0 0" maxRot="0 0 0" rotTime="5" pivotverin="6|0|0|0|5|0|1|0" />
			
    <transformer index="6|0|0|0|3|0" index2="6|0|0|0|3|0|0" minRot="93 0 0" maxRot="0 0 0" fixPoint="6|0|0|0|3|0|1"/>
		
	<bielle1 indexverin="6|0|0|0|3|0|2|0" indextige="6|0|0|0|3|0|2|0|0" translationtige="6|0|0|0|3|0|2|0|0|0" />
	
  	<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" />
        <attacherJoint position="0 0.4" rotation="0" invertX="true" />
    </schemaOverlay>
</vehicle>
