﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="cultivator" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Combiplow Gold 3M</name>
        <specs>
            <neededPower>120</neededPower>
            <workingWidth>3.0</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_subsoiler</function>
        </functions>
        <image>$data/vehicles/agrisem/combiplow3M/store_combiplow3M.png</image>
        <price>8600</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>AGRISEM</brand>
        <category>subsoilers</category>
        <shopTranslationOffset>0 -0.027 0</shopTranslationOffset>
        <shopRotationOffset>0.001 0.011 0</shopRotationOffset>
        <vertexBufferMemoryUsage>186112</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>27648</indexBufferMemoryUsage>
        <textureMemoryUsage>917504</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cultivator</typeDesc>
        <filename>$data/vehicles/agrisem/combiplow3M/combiplow3M.i3d</filename>
        <size width="3.5" length="1.2" lengthOffset="0"/>
        <speedLimit value="12" />
        <components>
            <component centerOfMass="0 0.4 0" solverIterationCount="20" mass="679" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="inputAttacherJoint" jointType="implement" topReferenceNode="topReferenceNode" allowsLowering="true" lowerRotLimitScale="0 0 0" upperRotationOffset="15" lowerRotationOffset="0">
                <distanceToGround lower="0.55" upper="1.3" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <attacherJoints>
        <attacherJoint node="attacherJointBack" lowerTransLimit="0 0.1 0" upperTransLimit="0 0.1 0" upperRotationOffset="15" allowsLowering="false" lockDownTransLimit="false">
            <distanceToGround lower="0.45" upper="1.0" />
            <rotationNode node="attacherJointBackRot" upperRotation="-50 0 0" />
            <bottomArm rotationNode="attacherJointBackArmBottom" translationNode="lowerLink" referenceNode="referencePointBackBottom" zScale="-1" startRotation="-50 0 0" />
            <topArm baseNode="attacherJointBackArmTop" filename="$data/shared/assets/upperLinkSmall.i3d" zScale="-1" toggleVisibility="true"/>
            <schema position="1 0" rotation="0" invertX="false" liftedOffset="0 0"/>
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" />
            <hydraulic template="defaultHydraulicSound" />
        </sounds>
    </attacherJoints>

    <connectionHoses>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="topRightPipeSkipPoint" type="TOOL_CONNECTOR_TOP_RIGHT" length="1" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="skipNodeHydraulicIn01" type="hydraulicIn" length="1" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="skipNodeHydraulicOut01" type="hydraulicOut" length="1" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="skipNodeHydraulicIn02" type="hydraulicIn" length="1" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="skipNodeHydraulicOut02" type="hydraulicOut" length="1" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="skipNodeHydraulicIn03" type="hydraulicIn" length="1" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="skipNodeHydraulicOut03" type="hydraulicOut" length="1" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="skipNodeElectric" type="electric" length="1" isTwoPointHose="true"/>
    </connectionHoses>

    <powerTakeOffs>
        <output attacherJointIndices="1" skipToInputAttacherIndex="1" />
    </powerTakeOffs>

    <powerConsumer neededMinPtoPower="0" neededMaxPtoPower="0" forceNode="combiplow3M_main_component1" maxForce="20" />

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" forceFactor="1" threshold="0.1" depthNode="depthNode" chargeValue="1" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="cultivator" functionName="processCultivatorArea" >
            <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="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>
        </effect>

        <particle>
            <node node="smokeEmitter" refNodeIndex="1" particleType="SOIL_SMOKE" worldSpace="false"/>
        </particle>
    </workParticles>

    <cultivator isSubsoiler="true" useDeepMode="false">
        <sounds>
            <work template="DEFAULT_PLOW_WORK" linkNode="0>" />
        </sounds>
        <directionNode node="0>" />
        <onlyActiveWhenLowered value="true"/>
    </cultivator>

    <animations>
        <animation name="moveSupport">
            <part node="supportTrans"    startTime="0" endTime="0.1" startTrans="0 0 0.627" endTrans="0 0 0" />
            <part node="supportCol"      startTime="0" endTime="0.1" startTrans="0 0.665 0" endTrans="0 0 0" />

            <sound template="clackVar5" startTime="0.09" direction="-1" volumeScale="0.9" pitchScale="1.6" linkNode="inputAttacherJoint"/>
            <sound template="latchSmall" startTime="0.05" direction="-1" volumeScale="0.2" pitchScale="1.2" linkNode="inputAttacherJoint"/>
            <sound template="clackVar1" startTime="0.05" direction="1" volumeScale="1.2" pitchScale="1.6" linkNode="inputAttacherJoint"/>
        </animation>
    </animations>

    <ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <needsLowering value="true"/>
        <agentAttachment width="3" height="1.7" length="1" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-0.3" maxZ="0.3" yOffset="0.6" />
    </foliageBending>

    <baseMaterial>
        <material name="agrisemCombiplow_mat" baseNode="combiplow3M_vis">
            <shaderParameter name="colorMat0" value="AGRISEM_YELLOW1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="combiplow3M_main_component1" node="0>" />
        <i3dMapping id="combiplow3M_vis" node="0>0" />
        <i3dMapping id="inputAttacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="attacherJointBackRot" node="0>0|0|2|0|0" />
        <i3dMapping id="attacherJointBackRot2" node="0>0|0|2|0|0|0" />
        <i3dMapping id="attacherJointBack" node="0>0|0|2|0|0|0|0" />
        <i3dMapping id="attacherJointBackArmBottom" node="0>0|0|2|0|1" />
        <i3dMapping id="lowerLink" node="0>0|0|2|0|1|0" />
        <i3dMapping id="referencePointBackBottom" node="0>0|0|2|0|1|0|0" />
        <i3dMapping id="attacherJointBackArmTop" node="0>0|0|2|0|2" />
        <i3dMapping id="supportTrans" node="0>0|0|3|0|0" />
        <i3dMapping id="supportCol" node="0>0|0|3|1" />
        <i3dMapping id="topRightPipeSkipPoint" node="0>0|0|4" />
        <i3dMapping id="skipNodeHydraulicIn01" node="0>0|0|5" />
        <i3dMapping id="skipNodeHydraulicIn02" node="0>0|0|6" />
        <i3dMapping id="skipNodeHydraulicIn03" node="0>0|0|7" />
        <i3dMapping id="skipNodeHydraulicOut01" node="0>0|0|8" />
        <i3dMapping id="skipNodeHydraulicOut02" node="0>0|0|9" />
        <i3dMapping id="skipNodeHydraulicOut03" node="0>0|0|10" />
        <i3dMapping id="skipNodeElectric" node="0>0|0|11" />
        <i3dMapping id="workAreaStart" node="0>0|1|0" />
        <i3dMapping id="workAreaWidth" node="0>0|1|1" />
        <i3dMapping id="workAreaHeight" node="0>0|1|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|1|3" />
        <i3dMapping id="depthNode" node="0>0|1|4" />
        <i3dMapping id="aiMarkerLeft" node="0>0|2|0|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|2|0|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|2|0|2" />
        <i3dMapping id="smokeEmitter" node="0>0|3|0" />
        <i3dMapping id="sweepEffectLinkNode01" node="0>0|3|1" />
        <i3dMapping id="sweepEffectLinkNode02" node="0>0|3|2" />
        <i3dMapping id="sweepEffectLinkNode03" node="0>0|3|3" />
        <i3dMapping id="sweepEffectLinkNode04" node="0>0|3|4" />
    </i3dMappings>
</vehicle>
