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

    <wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="-70" rotMax="32" rotMin="-32" driveMode="1" repr="0" radius="0.30" deltaY="0.01" suspTravel="0.02" spring="30" damper="10" mass="0.1" lateralStiffness="2"/>
        <wheel rotSpeed="-70" rotMax="32" rotMin="-32" driveMode="1" repr="1" radius="0.30" deltaY="0.01" suspTravel="0.02" spring="30" damper="10" mass="0.1" lateralStiffness="2"/>
        <wheel rotSpeed="70" rotMax="32" rotMin="-32" driveMode="1" repr="2" radius="0.30" deltaY="0.01" suspTravel="0.02" spring="30" damper="10" mass="0.1" lateralStiffness="2"/>
        <wheel rotSpeed="70" rotMax="32" rotMin="-32" driveMode="1" repr="3" radius="0.30" deltaY="0.01" suspTravel="0.02" spring="30" damper="10" mass="0.1" lateralStiffness="2"/>

        <wheel rotSpeed="0" driveMode="1" repr="9" radius="0.28" deltaY="0.01" suspTravel="0.02" spring="30" damper="10" mass="0.1" lateralStiffness="2"/>
        <wheel rotSpeed="0" driveMode="1" repr="10" radius="0.28" deltaY="0.01" suspTravel="0.02" spring="30" damper="10" mass="0.1" lateralStiffness="2"/>
    </wheels>

    <motor minRpm="300" maxRpm="800 1500 2500" brakeForce="14" forwardGearRatio="2.5" backwardGearRatio="2.8" differentialRatio="8" rpmFadeOutRange="20">
        <torque rpm="900" torque="0.7"/>
        <torque rpm="1500" torque="1.1"/>
        <torque rpm="2100" torque="1.4"/>
        <torque rpm="2500" torque="1.0"/>
    </motor>

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

    <motorStartSound file="miniExcavatorStart.wav" pitchOffset="1" volume="1" />
    <motorSound file="miniExcavatorIdle.wav" pitchOffset="1" pitchScale="0.0027" pitchMax="1.65" volume="1" />
    <motorStopSound file="miniExcavatorStop.wav" pitchOffset="1" />
    <hydraulicSound file="hydraulics.wav" pitchOffset="0.8" volume="0.4" />
    <crawlerSound file="crawlers.wav" pitchOffset="1" volume="1"/>

    <lights count="2">
        <light1 index="1>3" />
        <light2 index="0>8" />
    </lights>

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

    <crawlers index="7|0" uvScrollSpeed="2.1" />

    <enterReferenceNode index="0>" />
    <exitPoint index="5" />
    <size width="2" length="6.2" lengthOffset="-0.3" widthOffset="-0.226" />
    <characterNode index="1>0|1" cameraMinDistance="0.5" />

    <jackhammer index="1>0|0|0|0|0|2" damagePerSecond="2.5" force="70" forceMaxVelocity="1" maxDist="0.5" />
    <jackhammerHitParticleSystem node="1>0|0|0|0|0|3" position="0 0 0" file="hammerDebrisSmall.i3d" />
    <jackhammerIdleSound file="jackHammerSmallIdle.wav" pitchOffset="1" volume="1" />
    <jackhammerHitSound file="jackHammerSmallHit.wav" pitchOffset="1" volume="0.45" />

    <mouseControls>
        <mouseControl iconFilename="mouseControlsHelp/tool_mxc_compressor.png" mouseButton="LEFT" mouseAxis="X" axis="AXIS_EXCAVATOR_SHOVEL" />
        <mouseControl iconFilename="mouseControlsHelp/tool_mxc_arm3.png" mouseButton="LEFT" mouseAxis="Y" axis="AXIS_EXCAVATOR_ARM3" />

        <mouseControl iconFilename="mouseControlsHelp/tool_mxc_upper.png" mouseButton="RIGHT" mouseAxis="X" axis="AXIS_TURN_UPPER_STRUCTURE" />
        <mouseControl iconFilename="mouseControlsHelp/tool_mxc_arm2.png" mouseButton="RIGHT" mouseAxis="Y" axis="AXIS_EXCAVATOR_ARM2" />

        <mouseControl iconFilename="mouseControlsHelp/tool_mxc_arm1.png" mouseButton="LEFTRIGHT" mouseAxis="X" axis="AXIS_EXCAVATOR_ARM1" />
        <mouseControl iconFilename="mouseControlsHelp/tool_mxc_arm4.png" mouseButton="LEFTRIGHT" mouseAxis="Y" axis="AXIS_EXCAVATOR_ARM4" />
    </mouseControls>

    <movingTools>
        <movingTool index="1>0|0|0|0|0" componentJointIndex="1" anchorActor="0" rotSpeed="35" speedFactor="1.5" rotMax="90" rotMin="-45" axis="AXIS_EXCAVATOR_SHOVEL" invertAxis="true" mouseAxis="AXIS_EXCAVATOR_SHOVEL" invertMouseAxis="true" activatingActions="ACTIVATE_PRIMARY_VEHICLE_TOOLS" deactivatingActions="ACTIVATE_SECONDARY_VEHICLE_TOOLS" >
            <dependentPart index="1>0|0|0|0|1" />
        </movingTool>
        <movingTool index="1>0|0|0|0" componentJointIndex="3" anchorActor="0" rotSpeed="35" speedFactor="1.0" rotMax="20" rotMin="-56" axis="AXIS_EXCAVATOR_ARM3" invertAxis="false" mouseAxis="AXIS_EXCAVATOR_ARM3" activatingActions="ACTIVATE_PRIMARY_VEHICLE_TOOLS" deactivatingActions="ACTIVATE_SECONDARY_VEHICLE_TOOLS" >
            <dependentPart index="1>0|0|0|2" />
            <dependentPart index="1>0|0|0|0|0" />
        </movingTool>
        <movingTool index="1>0|0|0" componentJointIndex="2" anchorActor="0" rotSpeed="30" speedFactor="0.8" rotMax="22" rotMin="-50" axis="AXIS_EXCAVATOR_ARM2" invertAxis="true" mouseAxis="AXIS_EXCAVATOR_ARM2" invertMouseAxis="true" activatingActions="ACTIVATE_SECONDARY_VEHICLE_TOOLS" deactivatingActions="ACTIVATE_PRIMARY_VEHICLE_TOOLS">
            <dependentPart index="1>0|0|0|1" />
            <dependentPart index="1>0|0|0|0" />
        </movingTool>
        <!-- rotate arm -->
        <movingTool index="1>0|0" anchorActor="0" rotSpeed="30" speedFactor="1.5" rotMax="90" rotMin="-90" rotationAxis="2" axis="AXIS_EXCAVATOR_ARM1" invertAxis="true" mouseAxis="AXIS_EXCAVATOR_ARM1" invertMouseAxis="true" activatingActions="ACTIVATE_PRIMARY_VEHICLE_TOOLS ACTIVATE_SECONDARY_VEHICLE_TOOLS">
            <dependentPart index="1>0|0|0" />
        </movingTool>

        <!-- boulder shield arm -->
        <movingTool index="0>7|1" componentJointIndex="4" anchorActor="0" rotSpeed="30" speedFactor="0.6" rotMax="0" rotMin="-10" rotationAxis="1" axis="AXIS_EXCAVATOR_ARM4" invertAxis="true" mouseAxis="AXIS_EXCAVATOR_ARM4" invertMouseAxis="true">
            <dependentPart index="0>7|2" />
        </movingTool>

        <movingTool index="0>6" componentJointIndex="0" anchorActor="0" rotSpeed="25" speedFactor="1.0" axis="AXIS_TURN_UPPER_STRUCTURE" invertAxis="true" rotationAxis="2" mouseAxis="AXIS_TURN_UPPER_STRUCTURE" mouseButton="RIGHT" invertMouseAxis="true" activatingActions="ACTIVATE_SECONDARY_VEHICLE_TOOLS" deactivatingActions="ACTIVATE_PRIMARY_VEHICLE_TOOLS"/>
    </movingTools>

    <movingParts>

        <!-- front arm hinge -->
        <movingPart index="1>0|0|0|0|1" referencePoint="1>0|0|0|0|0|1" localReferencePoint="1>0|0|0|0|1|0" referenceFrame="1>0|0|0|0|1">
            <dependentPart index="1>0|0|0|0|1|0" />
            <dependentPart index="1>0|0|0|0|2" />
        </movingPart>
        <!-- front arm hinge2 -->
        <movingPart index="1>0|0|0|0|1|0" referencePoint="1>0|0|0|0|0|1" referenceFrame="1>0|0|0|0|4">
        </movingPart>
        <!-- cylinder bucket -->
        <movingPart index="1>0|0|0|0|2" referencePoint="1>0|0|0|0|1|0" referenceFrame="1>0|0|0|0|4">
            <translatingPart index="1>0|0|0|0|2|0" />
        </movingPart>
        <!-- arm2 cylinder -->
        <movingPart index="1>0|0|0|2" referencePoint="1>0|0|0|0|3" referenceFrame="1>0|0|0|0">
            <translatingPart index="1>0|0|0|2|0" />
        </movingPart>
        <!-- arm1 cylinder -->
        <movingPart index="1>0|0|0|1" referencePoint="1>0|0|1" referenceFrame="1>0|0|0|1">
            <translatingPart index="1>0|0|0|1|0" />
        </movingPart>
        <!-- boulder shield cylinder -->
        <movingPart index="0>7|2" referencePoint="0>7|1|1" referenceFrame="0>7|1|1">
            <translatingPart index="0>7|2|0" />
        </movingPart>
    </movingParts>

    <components count="6">
        <component1 centerOfMass="-0.195 0 -2.306" solverIterationCount="10" />
        <component2 centerOfMass="0 -0.5 0" solverIterationCount="10" />
        <component3 solverIterationCount="10" />
        <component4 solverIterationCount="10" />
        <component5 solverIterationCount="10" />
        <component6 solverIterationCount="10" />
        <joint component1="0" component2="1" index="0>6" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
        <joint component1="1" component2="2" index="1>0|0|0|0|0|0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
        <joint component1="1" component2="3" index="1>0|0|0|3" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
        <joint component1="1" component2="4" index="1>0|0|0|0|5" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
        <joint component1="0" component2="5" index="0>7|1|0" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
    </components>
</vehicle>
