<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Liebherr576">
    <annotation>Mofa-Killer</annotation>
    <name>Liebherr576</name>
    <description>volvol70</description>
    <filename>volvo_l70.i3d</filename>
    <size width="4.3" length="9.5" lengthOffset="0.168"/>

    <wheels autoRotateBackSpeed="1">
        <wheel rotSpeed="50" rotMax="30" rotMin="-30" driveNode="0>17"  driveMode="0" repr="0>16" radius="0.15" deltaY="0" suspTravel="0.1" spring="100" damper="10" mass="1.0" />
        <wheel rotSpeed="0" driveMode="2" repr="0>0" radius="0.85" deltaY="0.1" suspTravel="0.2" spring="75" damper="20" mass="0.6" lateralStiffness="18" />
        <wheel rotSpeed="0" driveMode="2" repr="0>1" radius="0.85" deltaY="0.1" suspTravel="0.2" spring="75" damper="20" mass="0.6" lateralStiffness="18" />
        <wheel rotSpeed="0" driveMode="1" repr="1>0" radius="0.85" deltaY="0.1" suspTravel="0.2" spring="75" damper="20" mass="0.6" lateralStiffness="18" />
        <wheel rotSpeed="0" driveMode="1" repr="1>1" radius="0.85" deltaY="0.1" suspTravel="0.2" spring="75" damper="20" mass="0.6" lateralStiffness="18" />
        <wheel rotSpeed="50" rotMax="30" rotMin="-30" driveNode="0>17"  driveMode="0" repr="0>16" radius="0.15" deltaY="0" suspTravel="0.1" spring="100" damper="10" mass="1.0" />
    </wheels>

    <motor minRpm="100" maxRpm="900 1500 2500" brakeForce="7" forwardGearRatio="2.8" backwardGearRatio="2.5" differentialRatio="6" rpmFadeOutRange="10">
        <torque rpm="100" torque="1.7"/>
        <torque rpm="300" torque="2.1"/>
        <torque rpm="600" torque="2.4"/>
        <torque rpm="900" torque="3.0"/>
        <torque rpm="1200" torque="3.8"/>
        <torque rpm="1500" torque="4.7"/>
        <torque rpm="1750" torque="5.6"/>
        <torque rpm="2000" torque="6.0"/>
        <torque rpm="2500" torque="7.1"/>
    </motor>

    <fuelCapacity>340</fuelCapacity>
    <fuelUsage>0</fuelUsage>
    <downForce>5</downForce>

    <motorStartSound file="sounds/wheelLoaderStart.wav" pitchOffset="0.7" volume="1.5" />
    <motorSound file="sounds/wheelLoaderIdle.wav" pitchOffset="0.7" pitchScale="0.006" pitchMax="1.65" volume="1.5" />
    <motorSoundRun file="sounds/wheelLoaderIdle.wav" pitchOffset="0.7" pitchScale="0.006" pitchMax="1.65" volume="1.5" />
    <motorStopSound file="sounds/wheelLoaderStop.wav" pitchOffset="1" volume="1" />
    <cylinderedHydraulicSound file="sounds/hydraulics.wav" pitchOffset="0.8" volume="0.8" />
    <attachSound file="$data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />    
    <compressedAirSound file="sounds/compressedAir.wav" pitchOffset="1" volume="1.0"/>
    <compressionSound file="$data/vehicles/steerable/deutz/compressorWork.wav" pitchOffset="1" volume="1.5"/>  
    <reverseDriveSound file="sounds/beep.wav" volume="0.7" />
    <brakeSound file="sounds/bremse.wav" pitchOffset="0.7"/>
    <honkSound file="$dataS2/sounds/horn.wav" client="$dataS2/sounds/horn3D.wav" volume="1" radius="80" innerRadius="35" />

    <lights count="1">
        <light1 index="6" />
        <light1 index="1>9" />
    </lights>
    
    <beaconLights>
		<beaconLight index="0>18|0|0" speed="0.008" />
		<beaconLight index="0>19|0|0" speed="0.008" />
		<beaconLight index="0>18|0|0|0" speed="0.008" />
		<beaconLight index="0>19|0|0|0" speed="0.008" />
	</beaconLights>
	
	<lightsaddon lightsStayOn="false">
		<light type="highbeam" index="21|0" real="21|0|2" beam="21|0|1" />
		<light type="dirLeft" index="21|1" />
		<light type="dirRight" index="21|2" />
		<light type="brake" index="21|3" />
		<light type="reverse" index="21|4" />
	</lightsaddon>

	<workLights>
	    <workLight index="1>9" />
	</workLights>

    <cameras count="3">
        <camera1 index="2|0" rotatable="true" rotateNode="2" limit="false" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="20">
          </camera1>
        <camera2 index="3" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" isInside="true" />
        <camera3 index="1>4|0" rotatable="true" rotateNode="1>4" limit="false" rotMinX="-1.6" rotMaxX="1" transMin="4" transMax="10">
        </camera3>
    </cameras>

    <dynamicExhaustingSystem maxRot="-81.5" minAlpha="0.1" maxAlpha="1.0" param="exhaustingSystem" >
		<startSequence>
			<key time="0.0"  value="0 0 0 0"/>
			<key time="0.4"  value="0 0 0 0.5"/>
			<key time="0.58" value="0 0 0 0.2"/>
			<key time="0.6"  value="0 0 0 0.2"/>
			<key time="0.75" value="0 0 0 1"/>
			<key time="0.93" value="0 0 0 1"/>
			<key time="1.0"  value="0 0 0 0.2"/>
		</startSequence>
	</dynamicExhaustingSystem>
	
    <exhaustParticleSystems count="1">
        <exhaustParticleSystem1 position="-0.33845 3.39952 -2.35257" rotation="-90.30491 0 0" file="ExhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

    <steering index="5|0" rotationSpeed="6"/>
    <enterReferenceNode index="0>" />
    <exitPoint  index="4" />
    <characterNode index="8" cameraMinDistance="0.5" />

    <attacherJoints>
        <attacherJoint jointType="frontloader" index="1>2|2|0|1" allowsJointLimitMovement="false" allowsLowering="false" />
        <attacherJoint jointType="telehandler" index="1>2|2|0|3" allowsJointLimitMovement="false" allowsLowering="false" />
    </attacherJoints>

    <isKinkSteering value="true"/>
	<kinkSteering kinkJoint="1" wheelOrientation="0>16" />    

    <mouseControls>
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/dafs_arm1.png" mouseButton="LEFT" mouseAxis="Y" axis="AXIS_FRONTLOADER_ARM" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/dafs_tool.png" mouseButton="LEFT" mouseAxis="X" axis="AXIS_FRONTLOADER_TOOL" />
    </mouseControls>
    
    <movingTools>
        <movingTool index="1>2|2" attacherJointIndices="0" componentJointIndex="1" anchorActor="0" rotSpeed="20" rotAcceleration="100" rotMax="0" rotMin="-85" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="true" speedFactor="0.5">
			<dependentPart index="1>2|0" />
			<dependentPart index="1>2|1" />
        </movingTool>
        <movingTool index="1>2|2|0" attacherJointIndices="0" anchorActor="0" rotSpeed="40" rotAcceleration="160" rotMax="130" rotMin="-35" axis="AXIS_FRONTLOADER_TOOL" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_TOOL" invertMouseAxis="false" speedFactor="0.5">
            <dependentPart index="1>2|0" />
			<dependentPart index="1>2|1" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- arm cylinder -->
        <movingPart index="1>2|0" referencePoint="1>2|2|2" referenceFrame="1>2|2">
            <translatingPart index="1>2|0|0" />
        </movingPart>
		<movingPart index="1>2|1" referencePoint="1>2|2|3" referenceFrame="1>2|2" scaleZ="true" />
    </movingParts>
 
    <components count="2">
        <component1 centerOfMass="0 -0.15 -0.15" solverIterationCount="4" />
        <component2 solverIterationCount="4" />
        <joint component1="0" component2="1" index="0>16|0" rotLimit="0 0 2" transLimit="0 0 0"/>
    </components> 

    <lights count="1">
        <light1 index="1>9" />
    </lights>

    <trailerAttacherJoints>
        <trailerAttacherJoint index="23" />
        <trailerAttacherJoint index="23" low="true" />
    </trailerAttacherJoints>

</vehicle>
