<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="fertilizingCultivator">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Vibro-Grubber</name>
        <specs>
            <neededPower>100</neededPower>
            <workingWidth>6.2</workingWidth>
            <combination>Terra-V., SKE 18.5 PUD</combination>
        </specs>
        <functions>
            <function>$l10n_function_slurrySpreaderTool</function>
            <function>$l10n_function_cultivator</function>
        </functions>
        <image>zunhammer/vibro/store_vibro.png</image>
        <price>34800</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ZUNHAMMER</brand>
        <category>Holmer_Guellepack</category>
        <shopHeight>4</shopHeight>
        <vertexBufferMemoryUsage>0</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>0</indexBufferMemoryUsage>
        <textureMemoryUsage>0</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cultivator</typeDesc>
        <filename>zunhammer/vibro/vibro.i3d</filename>
        <speedLimit value="17" />
        <size width="3.5" length="3.5"/>
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="10" mass="2060" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel filename="$data/shared/wheels/trelleborg/AW305/215_75R17_5.xml" isLeft="true">
                        <physics rotSpeed="0" restLoad="0.4" repr="wheelLeft" forcePointRatio="0.2" initialCompression="20" suspTravel="0.1" spring="17" damper="15" isSynchronized="true"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/AW305/215_75R17_5.xml" isLeft="false">
                        <physics rotSpeed="0" restLoad="0.4" repr="wheelRight" forcePointRatio="0.2" initialCompression="20" suspTravel="0.1" spring="17" damper="15" isSynchronized="true"/>
                    </wheel>
                    <wheel>
                        <physics rotSpeed="0" restLoad="0.8" repr="wheelLeftBack" forcePointRatio="0.2" width="0.3" radius="0.3" mass="0.1" initialCompression="20" suspTravel="0.1" spring="34" damper="50" isSynchronized="false"/>
                    </wheel>
                    <wheel>
                        <physics rotSpeed="0" restLoad="0.8" repr="wheelRightBack" forcePointRatio="0.2" width="0.3" radius="0.3" mass="0.1" initialCompression="20" suspTravel="0.1" spring="34" damper="50" isSynchronized="false"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <hubs>
            <hub linkNode="wheelLeft"  filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="true"  scale="0.203 0.203 0.203" />
            <hub linkNode="wheelRight" filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="false"  scale="0.203 0.203 0.203" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode">
                <distanceToGround lower="0.5" upper="1.2" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_TOP_RIGHT" node="topRightHose" length="2" diameter="0.14" straighteningFactor="2" isTwoPointHose="true" />

        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1.3" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.3" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn02"  length="1.3" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicIn02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut02" length="1.3" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicOut02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric"  node="hydraulicIn03"  length="1.3" diameter="0.008" straighteningFactor="1">
            <objectChange node="hydraulicIn03_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <powerConsumer forceNode="groundReferenceNode" maxForce="100" />

    <lights>
        <sharedLight linkNode="rear2ChamberLight_03" filename="$data/shared/assets/lights/lizard/rear2ChamberLight_03_left.xml" />
        <sharedLight linkNode="rear2ChamberLight_04" filename="$data/shared/assets/lights/lizard/rear2ChamberLight_03_right.xml" />
        <sharedLight linkNode="yellowRound_02"       filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_03"       filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRectangle_01"   filename="$data/shared/assets/reflectors/lizard/yellowRectangle_01.xml" />
        <sharedLight linkNode="yellowRectangle_02"   filename="$data/shared/assets/reflectors/lizard/yellowRectangle_01.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh1" />
            </high>
        </realLights>
    </lights>

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" forceFactor="1" threshold="0.3" depthNode="groundReferenceNode" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="cultivator" functionName="processCultivatorArea" needsSetIsTurnedOn="false" >
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <folding minLimit="0" maxLimit="0.1" />
        </workArea>
    </workAreas>

    <workParticles>
        <particleAnimation>
            <node node="effectSoil"    refNodeIndex="1" materialType="SOIL"    maxDepth="-0.15"/>
        </particleAnimation>
        <particle>
            <node node="effectParticleSoilEmit"  refNodeIndex="1" particleType="SOIL" />
            <node node="effectParticleSmokeEmit" refNodeIndex="1" particleType="SOIL_SMOKE" />
            <node node="effectParticleSoilEmit1" refNodeIndex="1" particleType="SOIL_CHUNKS" worldSpace="false"/>
        </particle>
    </workParticles>

    <foldable>
        <foldingParts startMoveDirection="1" turnOnFoldMinLimit="0" turnOnFoldMaxLimit="0.02">
            <foldingPart animationName="folding" speedScale="1" />
        </foldingParts>
    </foldable>

    <animations>
        <animation name="folding">
            <part node="leftArm" startTime="0"   endTime="3.7" startRot="0 0 0" endRot="0 0 90"/>
            <part node="rightArm" startTime="0.3" endTime="4"   startRot="0 0 0" endRot="0 0 -90"/>
            <part node="groundReferenceNode" startTime="0" endTime="0.3"   startTrans="0 0 0" endTrans="0 1 0"/>
        </animation>
        <animation name="moveSupport">
            <part node="supportcol01" startTime="0" endTime="0.1" startTrans="0 0.6 0" endTrans="0 0 0"/>
            <part node="supportcol02" startTime="0" endTime="0.1" startTrans="0 0.6 0" endTrans="0 0 0"/>
            <part node="supportcol03" startTime="0" endTime="0.1" startTrans="0 0.6 0" endTrans="0 0 0"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="leftArm" wheelIndices="1 3">
                <dependentPart node="leftArmHydraulic" />
            </movingTool>
            <movingTool node="rightArm" wheelIndices="2 4">
                <dependentPart node="rightArmHydraulic" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="leftArmHydraulic" referencePoint="leftArmHydraulicRef" referenceFrame="leftArmHydraulicRef" playSound="true" >
                <translatingPart node="leftArmHydraulicPunch" />
            </movingPart>
            <movingPart node="rightArmHydraulic" referencePoint="rightArmHydraulicRef" referenceFrame="rightArmHydraulicRef" playSound="true" >
                <translatingPart node="rightArmHydraulicPunch" />
            </movingPart>
        </movingParts>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>

    <cultivator>
        <directionNode node="0>" />
        <sounds>
            <work template="DEFAULT_CULTIVATOR_WORK" linkNode="0>" />
        </sounds>
    </cultivator>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="slurryTank" capacity="0" />
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <sprayer activateOnLowering="true">
        <usageScales workingWidth="6.2" scale="1" />
    </sprayer>

    <turnOnVehicle turnedOnByAttacherVehicle="true"/>

    <ai>
        <needsLowering value="true" />
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <collisionTrigger node="aiCollisionTrigger" />
    </ai>

    <foliageBending>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-1.2" maxZ="1.2" yOffset="0.5" />
        <bendingNode minX="0.5" maxX="2.7"  minZ="-0.3" maxZ="1.2" yOffset="-0.5" node="leftArm" />
        <bendingNode minX="-2.7" maxX="-0.5" minZ="-0.3" maxZ="1.2" yOffset="-0.5" node="rightArm" />
    </foliageBending>

    <baseMaterial>
        <material name="vibro_mat" baseNode="vibro_vis">
            <shaderParameter name="colorMat2" value="ZUNHAMMER_GREEN3"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="vibro_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="topRightHose" node="0>0|0|2|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|1" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|2|1|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|2|2" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|2|2|0" />
        <i3dMapping id="hydraulicIn02" node="0>0|0|2|3" />
        <i3dMapping id="hydraulicIn02_detached" node="0>0|0|2|3|0" />
        <i3dMapping id="hydraulicOut02" node="0>0|0|2|4" />
        <i3dMapping id="hydraulicOut02_detached" node="0>0|0|2|4|0" />
        <i3dMapping id="hydraulicIn03" node="0>0|0|2|5" />
        <i3dMapping id="hydraulicIn03_detached" node="0>0|0|2|5|0" />
        <i3dMapping id="supportcol01" node="0>0|0|3" />
        <i3dMapping id="yellowRound_02" node="0>0|1|0|0" />
        <i3dMapping id="yellowRound_03" node="0>0|1|0|1" />
        <i3dMapping id="rear2ChamberLight_03" node="0>0|1|0|2" />
        <i3dMapping id="rear2ChamberLight_04" node="0>0|1|0|3" />
        <i3dMapping id="backLightsHigh1" node="0>0|1|1|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|1|2|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|1|2|1" />
        <i3dMapping id="leftArm" node="0>0|2|0" />
        <i3dMapping id="wheelLeft" node="0>0|2|0|0" />
        <i3dMapping id="wheelLeftBack" node="0>0|2|0|1" />
        <i3dMapping id="leftArmHydraulicRef" node="0>0|2|0|2" />
        <i3dMapping id="yellowRectangle_01" node="0>0|2|0|3" />
        <i3dMapping id="supportcol02" node="0>0|2|0|6" />
        <i3dMapping id="rightArm" node="0>0|2|1" />
        <i3dMapping id="wheelRight" node="0>0|2|1|0" />
        <i3dMapping id="wheelRightBack" node="0>0|2|1|1" />
        <i3dMapping id="rightArmHydraulicRef" node="0>0|2|1|2" />
        <i3dMapping id="yellowRectangle_02" node="0>0|2|1|3" />
        <i3dMapping id="supportcol03" node="0>0|2|1|6" />
        <i3dMapping id="leftArmHydraulic" node="0>0|3|0" />
        <i3dMapping id="leftArmHydraulicPunch" node="0>0|3|0|0" />
        <i3dMapping id="rightArmHydraulic" node="0>0|3|1" />
        <i3dMapping id="rightArmHydraulicPunch" node="0>0|3|1|0" />
        <i3dMapping id="effectSoil" node="0>0|4|0" />
        <i3dMapping id="effectParticleSoilEmit" node="0>0|4|1" />
        <i3dMapping id="effectParticleSmokeEmit" node="0>0|4|2" />
        <i3dMapping id="effectParticleSoilEmit1" node="0>0|4|3" />
        <i3dMapping id="groundReferenceNode" node="0>0|5|0" />
        <i3dMapping id="workAreaStart" node="0>0|5|1" />
        <i3dMapping id="workAreaWidth" node="0>0|5|2" />
        <i3dMapping id="workAreaHeight" node="0>0|5|3" />
        <i3dMapping id="aiMarkerLeft" node="0>0|6|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|6|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|6|2" />
        <i3dMapping id="aiCollisionTrigger" node="0>0|6|3" />
    </i3dMappings>
</vehicle>
