﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="turnOnCultivator" 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>DRP 300 Perfect</name>
        <specs>
            <neededPower>100</neededPower>
            <workingWidth>3.0</workingWidth>
            <combination filterCategory="weights" filterSpec="weight" filterSpecMin="1000" filterSpecMax="1200"/>
        </specs>
        <functions>
            <function>$l10n_function_spader</function>
        </functions>
        <image>$data/vehicles/farmax/drp300Perfect/store_drp300Perfect.png</image>
        <price>42500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>FARMAX</brand>
        <category>spaders</category>
        <shopTranslationOffset>0 -0.061 0</shopTranslationOffset>
        <shopRotationOffset>5.779 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>2099712</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>347392</indexBufferMemoryUsage>
        <textureMemoryUsage>2359296</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_spader</typeDesc>
        <filename>$data/vehicles/farmax/drp300Perfect/drp300Perfect.i3d</filename>
        <size width="4" length="3" lengthOffset="-0.4"/>
        <speedLimit value="8" />
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="15" mass="1800" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL_TRAILED" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 1 0" lowerRotationOffset="-5" allowsLowering="true">
                <distanceToGround lower="0.45" upper="0.9"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="1.5"/>
    </attachable>

    <attacherJoints>
        <attacherJointConfigurations title="$l10n_configuration_inputAttacherJoint">
            <attacherJointConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <objectChange node="config_attacherJoint" visibilityActive="false" />
            </attacherJointConfiguration>
            <attacherJointConfiguration name="$l10n_configuration_inputAttacher3Point" price="1000" >
                <attacherJoint node="backAttacherJoint" upperRotationOffset="-3.0" lowerRotationOffset="-3.0" upperRotLimit="0 0 0" lowerRotLimit="0 0 0" lowerTransLimit="0 0 0" lockDownTransLimit="false" moveTime="2.5" comboTime="0">
                    <distanceToGround lower="0.37" upper="1.68" />
                    <rotationNode node="rotationNode" lowerRotation="-17 0 0" upperRotation="65 0 0" />
                    <rotationNode2 node="rotationNode2" />
                    <bottomArm rotationNode="bottomArm" translationNode="bottomArm2" referenceNode="referencePoint" zScale="-1" startRotation="-17 0 0" />
                    <topArm baseNode="attacherJointBackArmTop" filename="$data/shared/assets/upperLinks/walterscheid01.i3d" zScale="-1" color="FARMAX_RED1" toggleVisibility="true" />
                    <schema position="1 0" rotation="0" invertX="false" />
                </attacherJoint>
                <objectChange node="config_attacherJoint" visibilityActive="true" />
                <objectChange node="col" compoundChildActive="true" compoundChildInactive="false" />
            </attacherJointConfiguration>
        </attacherJointConfigurations>

        <sounds>
            <attach template="ATTACH_01" linkNode="drp300Perfect_main_component1" />
            <hydraulic template="defaultHydraulicSound" linkNode="drp300Perfect_main_component1" />
        </sounds>
    </attacherJoints>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="ptoInputNode" aboveAttacher="true" />
    </powerTakeOffs>

    <powerConsumer ptoRpm="500" neededMinPtoPower="20" neededMaxPtoPower="25" forceNode="drp300Perfect_main_component1" maxForce="14" />

    <lights>
        <sharedLight linkNode="sideMarker01_left"  filename="$data/shared/assets/lights/lizard/sideMarker01_left.xml" />
        <sharedLight linkNode="sideMarker01_right" filename="$data/shared/assets/lights/lizard/sideMarker01_right.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0" />
                <brakeLight node="backLightsHigh1" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="backlightStatic" lightTypes="0"/>
        </defaultLights>

        <turnLights>
            <turnLightLeft shaderNode="turnlightLeftStatic" />
            <turnLightRight shaderNode="turnlightRightStatic" />
        </turnLights>

        <brakeLights>
            <brakeLight shaderNode="backlightStatic" />
        </brakeLights>
    </lights>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1.4" diameter="0.015" straighteningFactor="1">
           <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.4" diameter="0.015" straighteningFactor="1">
           <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric"  node="electricIn"  length="1.6" diameter="0.008" straighteningFactor="1">
            <objectChange node="electricIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="electric_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode"  threshold="0.1" depthNode="depthNode" />
    </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>
        </effect>
        <effect workAreaIndex="1" activeDirection="0" needsSetIsTurnedOn="true">
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="tineEffect01LinkNode">
                <motionPathEffect textureFilename="$data/vehicles/farmax/drp300Perfect/tineEffect01Array.dds" numRows="20" rowLength="18" density="0.4" shapeScale="1.5" maxShapeScale="1.5"/>
            </effectNode>
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="rollerEffect01LinkNode">
                <motionPathEffect textureFilename="$data/vehicles/farmax/drp300Perfect/rollerEffect01Array.dds" numRows="10" rowLength="18" minFade="0.07" speedScale="1" density="0.5" shapeScale="1.5" maxShapeScale="1.5"/>
            </effectNode>
        </effect>

        <particle>
            <node node="dustEmitterShape" refNodeIndex="1" particleType="SOIL_SMOKE" emitCountScale="1.0" />
        </particle>
    </workParticles>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm"  startTime="0" endTime="0.2" startTrans="0 0.45 0" endTrans="0 0 0"/>

            <sound template="clackVar5" startTime="0.09" direction="-1" volumeScale="0.9" pitchScale="1.3" linkNode="attacherJoint"/>
            <sound template="latchSmall" startTime="0.1" direction="-1" volumeScale="0.2" pitchScale="1.3" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.01" direction="1" volumeScale="1.2" pitchScale="1.2" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="bottomArm">
                <dependentPart node="topArm"/>
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="topArm" referencePoint="referencePoint" localReferencePoint="backPart" referenceFrame="bottomArm" limitedAxis="1">
               <dependentPart node="backPart"/>
               <dependentPart node="lowerArm"/>
               <dependentPart node="backPartHydraulic"/>
            </movingPart>
            <movingPart node="backPart" referencePoint="referencePoint" referenceFrame="referencePoint"/>
            <movingPart node="lowerArm" referencePoint="lowerArmRef" referenceFrame="lowerArmRef" scaleZ="true"/>
            <movingPart node="backPartHydraulic" referencePoint="backPartHydraulicRef" referenceFrame="backPartHydraulicRef">
                <translatingPart node="backPartHydraulicPunch" />
            </movingPart>
        </movingParts>

        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>"/>
        </sounds>
    </cylindered>

    <cultivator isSubsoiler="true" useDeepMode="true">
        <sounds>
            <work template="DEFAULT_CULTIVATOR_WORK" linkNode="0>" />
        </sounds>
        <directionNode node="0>" />
        <onlyActiveWhenLowered value="true"/>
    </cultivator>

    <turnOnVehicle>
        <sounds>
            <start template="STRAWBLOWER_START" />
            <work template="STRAWBLOWER_WORK" />
            <stop template="STRAWBLOWER_STOP" />
        </sounds>
        <animationNodes>
            <animationNode node="tine01" rotSpeed="250" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="5" />
            <animationNode node="roller" rotSpeed="650" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1" />
        </animationNodes>
    </turnOnVehicle>

    <ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <collisionTrigger node="aiCollisionNode" width="3.5" height="1.8"/>
        <needsLowering value="true"/>
        <agentAttachment width="3.6" height="1.7" length="2.2" lengthOffset="-0.5"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.7" maxX="1.7" minZ="-1.55" maxZ="0.6" yOffset="0.6" />
    </foliageBending>

    <baseMaterial>
        <material name="perfectII_mat" baseNode="drp300Perfect_vis">
            <shaderParameter name="colorMat0" value="FARMAX_RED1"/>
        </material>
        <material name="drp300Perfect_mat" baseNode="drp300Perfect">
            <shaderParameter name="colorMat0" value="FARMAX_RED1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="drp300Perfect_main_component1" node="0>" />
        <i3dMapping id="drp300Perfect_vis" node="0>0" />
        <i3dMapping id="config_attacherJoint" node="0>0|0" />
        <i3dMapping id="drp300Perfect" node="0>0|0|0" />
        <i3dMapping id="topArm" node="0>0|0|1|0" />
        <i3dMapping id="backPart" node="0>0|0|1|0|0" />
        <i3dMapping id="lowerArmRef" node="0>0|0|1|0|0|0" />
        <i3dMapping id="backPartHydraulicRef" node="0>0|0|1|0|0|1" />
        <i3dMapping id="attacherJointBackArmTop" node="0>0|0|1|0|0|2" />
        <i3dMapping id="col" node="0>0|0|1|0|0|3" />
        <i3dMapping id="lowerArm" node="0>0|0|1|1" />
        <i3dMapping id="backPartHydraulic" node="0>0|0|1|1|0" />
        <i3dMapping id="backPartHydraulicPunch" node="0>0|0|1|1|0|0" />
        <i3dMapping id="rotationNode" node="0>0|0|1|2" />
        <i3dMapping id="rotationNode2" node="0>0|0|1|2|0" />
        <i3dMapping id="backAttacherJoint" node="0>0|0|1|2|0|0" />
        <i3dMapping id="bottomArm" node="0>0|0|1|3" />
        <i3dMapping id="bottomArm2" node="0>0|0|1|3|0" />
        <i3dMapping id="referencePoint" node="0>0|0|1|3|0|0" />
        <i3dMapping id="attacherJoint" node="0>0|1|0" />
        <i3dMapping id="topReferenceNode" node="0>0|1|1" />
        <i3dMapping id="ptoInputNode" node="0>0|1|2" />
        <i3dMapping id="supportArm" node="0>0|1|3" />
        <i3dMapping id="hydraulicOut01" node="0>0|1|4|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|1|4|1" />
        <i3dMapping id="electricIn" node="0>0|1|4|2" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|1|4|3" />
        <i3dMapping id="hydraulicOut01_detachedAdapter" node="0>0|1|4|3|0" />
        <i3dMapping id="electricIn01_detached" node="0>0|1|4|4" />
        <i3dMapping id="electric_detachedAdapter" node="0>0|1|4|4|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|1|4|5" />
        <i3dMapping id="hydraulicIn01_detachedAdapter" node="0>0|1|4|5|0" />
        <i3dMapping id="sideMarker01_left" node="0>0|2|0|0" />
        <i3dMapping id="sideMarker01_right" node="0>0|2|0|1" />
        <i3dMapping id="backlightStatic" node="0>0|2|1|0" />
        <i3dMapping id="turnlightLeftStatic" node="0>0|2|1|1" />
        <i3dMapping id="turnlightRightStatic" node="0>0|2|1|2" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|2|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|3|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|3|1" />
        <i3dMapping id="tine01" node="0>0|3|0" />
        <i3dMapping id="roller" node="0>0|3|1" />
        <i3dMapping id="workAreaStart" node="0>0|4|0" />
        <i3dMapping id="workAreaWidth" node="0>0|4|1" />
        <i3dMapping id="workAreaHeight" node="0>0|4|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|4|3" />
        <i3dMapping id="depthNode" node="0>0|4|4" />
        <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="sweepEffectLinkNode05" node="0>0|6|0" />
        <i3dMapping id="sweepEffectLinkNode04" node="0>0|6|1" />
        <i3dMapping id="sweepEffectLinkNode03" node="0>0|6|2" />
        <i3dMapping id="sweepEffectLinkNode02" node="0>0|6|3" />
        <i3dMapping id="sweepEffectLinkNode01" node="0>0|6|4" />
        <i3dMapping id="tineEffect01LinkNode" node="0>0|6|5" />
        <i3dMapping id="rollerEffect01LinkNode" node="0>0|6|6" />
        <i3dMapping id="dustEmitterShape" node="0>0|6|7" />
    </i3dMappings>
</vehicle>
