<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="cultivator" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>$l10n_shopItem_horseDeepLooser</name>
        <specs>
            <neededPower>10</neededPower>
            <workingWidth>1.2</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_subsoiler</function>
            <function>$l10n_function_vineOliveTool</function>
        </functions>
        <image>store/store_akp122.png</image>
        <price>450</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LSFMHA</brand>
        <category>hofBergmannHorseAddonPack</category>
		<shopTranslationOffset>0 -0.005 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>124672</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>31744</indexBufferMemoryUsage>
        <textureMemoryUsage>589824</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cultivator</typeDesc>
        <filename>tools/akp122/akp122.i3d</filename>
        <size width="1.22" length="0.85" height="0.85" lengthOffset="0.03"/>
        <speedLimit value="12"/>
        <components>
            <component centerOfMass="0 0.1 -0.3" solverIterationCount="10" mass="80" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
		<showInVehicleMenu>false</showInVehicleMenu>
        <mapHotspot type="TOOL" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels hasSurfaceSounds="false">
                    <wheel>
                        <physics restLoad="0.05" repr="wheelLeft"  forcePointRatio="0.2" radius="0.07"  width="0.3"  mass="0.01" initialCompression="10" suspTravel="0.05" spring="2" damper="5" yOffset="0.013" brakeFactor="0"/>
                    </wheel>
                    <wheel>
                        <physics restLoad="0.05" repr="wheelRight" forcePointRatio="0.2" radius="0.07"  width="0.3"  mass="0.01" initialCompression="10" suspTravel="0.05" spring="2" damper="5" yOffset="0.013" brakeFactor="0"/>
                    </wheel>
                    <wheel>
                        <physics restLoad="0.10" repr="rollerBack" forcePointRatio="0.2" radius="0.065" width="1.15" mass="0.01" initialCompression="10" suspTravel="0.05" spring="5" damper="5" yOffset="0.013" brakeFactor="0.1"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <speedRotatingParts>
        <speedRotatingPart node="wheelLeftPart"  radius="0.07"  groundReferenceNodeIndex="1" onlyActiveWhenLowered="true"/>
        <speedRotatingPart node="wheelRightPart" radius="0.07"  groundReferenceNodeIndex="1" onlyActiveWhenLowered="true"/>
        <speedRotatingPart node="rollerBack"     radius="0.075" groundReferenceNodeIndex="1" onlyActiveWhenLowered="true"/>
    </speedRotatingParts>

    <attachable>
        <inputAttacherJointConfigurations>
            <inputAttacherJointConfiguration name="$l10n_configuration_valueSmall" price="0">
                <inputAttacherJoint node="attacherJoint" jointType="implement" lowerTransLimitScale="0 0 0" lowerRotationOffset="0" upperRotationOffset="0" upperTransLimitScale="0 0 0">
                    <distanceToGround lower="0.22" upper="0.7"/>
					<subType name="horseAttacherImplement" showWarning="false"/>
                </inputAttacherJoint>
            </inputAttacherJointConfiguration>
        </inputAttacherJointConfigurations>

        <support animationName="moveSupport"/>
        <brakeForce force="0.05"/>
    </attachable>

    <powerConsumer forceNode="akp122_main_component1" maxForce="0.2"/>

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

    <workAreas>
        <workArea type="cultivator" functionName="processCultivatorArea" needsSetIsTurnedOn="false">
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <onlyActiveWhenLowered value="true"/>
        </workArea>
    </workAreas>

    <workParticles>
        <effect workAreaIndex="1">
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="rollerEffect01LinkNode">
                <motionPathEffect textureFilename="tools/akp122/rollerEffect01Array.dds" numRows="10" rowLength="18" minFade="0.07" densityScale="0.3"/>
            </effectNode>
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="sweepEffectLinkNode01">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18" minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="sweepEffectLinkNode02">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18" minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="sweepEffectLinkNode03">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18"  minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="sweepEffectLinkNode04">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18"  minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="sweepEffectLinkNode05">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18"  minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="sweepEffectLinkNode06">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18"  minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="sweepEffectLinkNode07">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18"  minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
        </effect>
        <particle>
            <node node="smokeEmitter" refNodeIndex="1" particleType="SOIL_SMOKE"/>
        </particle>
    </workParticles>

    <animations>
        <animation name="moveSupport">
            <part node="support" startTime="0.0" endTime="0.25" startTrans="0 0.3 0" endTrans="0 0 0"/>

            <sound template="clackVar6" startTime="0.09" direction="-1" volumeScale="1.2" pitchScale="0.8" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <cultivator isSubsoiler="true" useDeepMode="false">
        <sounds>
            <work template="defaultCultivatorWork" linkNode="0>" />
        </sounds>
        <directionNode node="akp122_main_component1" />
        <onlyActiveWhenLowered value="true"/>
    </cultivator>

    <ai>
        <needsLowering value="true"/>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack"/>
        <collisionTrigger node="aiCollisionNode" width="2.8" height="1.6"/>
        <agentAttachment width="1.25" height="0.9" length="0.8" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.6" maxX="0.6" minZ="-0.4" maxZ="0.45" yOffset="0.3" />
    </foliageBending>

   <!--  <baseMaterial>
        <material name="akp122_mat" baseNode="akp122_vis">
            <shaderParameter name="colorMat0" value="SHARED_BLACK1"/>
        </material>
    </baseMaterial> -->

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

    <i3dMappings>
        <i3dMapping id="akp122_main_component1" node="0>" />
        <i3dMapping id="akp122_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="support" node="0>0|0|2" />
        <i3dMapping id="wheelLeft" node="0>0|1|0" />
        <i3dMapping id="wheelRight" node="0>0|1|1" />
        <i3dMapping id="supportWheels" node="0>0|1|2" />
        <i3dMapping id="wheelLeftPart" node="0>0|1|2|0" />
        <i3dMapping id="wheelRightPart" node="0>0|1|2|1" />
        <i3dMapping id="rollerBack" node="0>0|2|0" />
        <i3dMapping id="workAreaStart" node="0>0|3|0" />
        <i3dMapping id="workAreaWidth" node="0>0|3|1" />
        <i3dMapping id="workAreaHeight" node="0>0|3|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|3|3" />
        <i3dMapping id="depthNode" node="0>0|3|4" />
        <i3dMapping id="rollerEffect01LinkNode" node="0>0|4|0" />
        <i3dMapping id="sweepEffectLinkNode01" node="0>0|4|1" />
        <i3dMapping id="sweepEffectLinkNode02" node="0>0|4|2" />
        <i3dMapping id="sweepEffectLinkNode03" node="0>0|4|3" />
        <i3dMapping id="sweepEffectLinkNode04" node="0>0|4|4" />
        <i3dMapping id="sweepEffectLinkNode05" node="0>0|4|5" />
        <i3dMapping id="sweepEffectLinkNode06" node="0>0|4|6" />
        <i3dMapping id="sweepEffectLinkNode07" node="0>0|4|7" />
        <i3dMapping id="smokeEmitter" node="0>0|4|8" />
        <i3dMapping id="aiMarkerLeft" node="0>0|5|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|5|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|5|2" />
        <i3dMapping id="aiCollisionNode" node="0>0|5|3" />
        <i3dMapping id="hitchMeshKat01" node="0>0|6|1" />
        <i3dMapping id="hitchMeshKat02" node="0>0|6|2" />
    </i3dMappings>
</vehicle>
