﻿<?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 4M</name>
        <specs>
            <neededPower>150</neededPower>
            <workingWidth>4.0</workingWidth>
            <combination filterCategory="weights" filterSpec="weight" filterSpecMin="600" filterSpecMax="700"/>
        </specs>
        <functions>
            <function>$l10n_function_subsoiler</function>
        </functions>
        <image>$data/vehicles/agrisem/combiplow4M/store_combiplow4M.png</image>
        <price>10500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>AGRISEM</brand>
        <category>subsoilers</category>
        <shopTranslationOffset>0 -0.022 0</shopTranslationOffset>
        <shopRotationOffset>0.001 0.007 0</shopRotationOffset>
        <vertexBufferMemoryUsage>230400</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>34304</indexBufferMemoryUsage>
        <textureMemoryUsage>917504</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cultivator</typeDesc>
        <filename>$data/vehicles/agrisem/combiplow4M/combiplow4M.i3d</filename>
        <size width="4.5" length="1.2" lengthOffset="0"/>
        <speedLimit value="12" />
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="20" mass="862" />
        </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.05" />
            </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.7" 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="combiplow4M_main_component1" maxForce="22" />

    <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>
            <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>
        </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.3" startTrans="0 0 0.627" endTrans="0 0 0" />
            <part node="support_colFront"      startTime="0" endTime="0.3" startTrans="0 0.952 0" endTrans="0 0.287 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" />
        <collisionTrigger node="aiCollisionNode" width="4.0" height="1.7"/>
        <needsLowering value="true"/>
        <agentAttachment width="4" height="1.7" length="1" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-2.0" maxX="2.0" minZ="-0.3" maxZ="0.3" yOffset="0.6" />
    </foliageBending>

    <baseMaterial>
        <material name="agrisemCombiplow_mat" baseNode="combiplow4M_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="combiplow4M_main_component1" node="0>" />
        <i3dMapping id="combiplow4M_vis" node="0>0" />
        <i3dMapping id="inputAttacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="supportTrans" node="0>0|0|2|0|0" />
        <i3dMapping id="support_colFront" node="0>0|0|2|1" />
        <i3dMapping id="topRightPipeSkipPoint" node="0>0|0|3" />
        <i3dMapping id="skipNodeHydraulicIn01" node="0>0|0|4" />
        <i3dMapping id="skipNodeHydraulicIn02" node="0>0|0|5" />
        <i3dMapping id="skipNodeHydraulicIn03" node="0>0|0|6" />
        <i3dMapping id="skipNodeHydraulicOut01" node="0>0|0|7" />
        <i3dMapping id="skipNodeHydraulicOut02" node="0>0|0|8" />
        <i3dMapping id="skipNodeHydraulicOut03" node="0>0|0|9" />
        <i3dMapping id="skipNodeElectric" node="0>0|0|10" />
        <i3dMapping id="attacherJointBackRot" node="0>0|1|0|0" />
        <i3dMapping id="attacherJointBackRot2" node="0>0|1|0|0|0" />
        <i3dMapping id="attacherJointBack" node="0>0|1|0|0|0|0" />
        <i3dMapping id="attacherJointBackArmBottom" node="0>0|1|0|1" />
        <i3dMapping id="lowerLink" node="0>0|1|0|1|0" />
        <i3dMapping id="referencePointBackBottom" node="0>0|1|0|1|0|0" />
        <i3dMapping id="attacherJointBackArmTop" node="0>0|1|0|2" />
        <i3dMapping id="workAreaStart" node="0>0|2|0" />
        <i3dMapping id="workAreaWidth" node="0>0|2|1" />
        <i3dMapping id="workAreaHeight" node="0>0|2|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|2|3" />
        <i3dMapping id="depthNode" node="0>0|2|4" />
        <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" />
        <i3dMapping id="sweepEffectLinkNode05" node="0>0|3|5" />
        <i3dMapping id="sweepEffectLinkNode06" node="0>0|3|6" />
        <i3dMapping id="aiMarkerLeft" node="0>0|4|0|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|4|0|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|4|0|2" />
        <i3dMapping id="aiCollisionNode" node="0>0|4|1" />
    </i3dMappings>
</vehicle>
