﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="cultivator">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Kret</name>
        <specs>
            <neededPower>160</neededPower>
            <workingWidth>20.0</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_subsoiler</function>
        </functions>
        <image>store.png</image>
        <price>10000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>subsoilers</category>
        <vertexBufferMemoryUsage>2450056</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>375672</indexBufferMemoryUsage>
        <textureMemoryUsage>7689816</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cultivator</typeDesc>
        <filename>Kret.i3d</filename>
        <size width="4.5" length="1.5" />
        <speedLimit value="25" />
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="20" mass="980" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

    <groundReferenceNodes>
        <groundReferenceNode node="0>0|3|3" forceFactor="1" threshold="0.05" depthNode="0>0|3|3" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="cultivator" functionName="processCultivatorArea" >
            <area startNode="0>0|3|0" widthNode="0>0|3|1" heightNode="0>0|3|2" />
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>

    <powerConsumer forceNode="0>" maxForce="22" />

    <cultivator isSubsoiler="true">
        <sounds>
            <work template="DEFAULT_CULTIVATOR_WORK" linkNode="0>" />
        </sounds>
        <directionNode node="0>" />
        <onlyActiveWhenLowered value="true"/>
    </cultivator>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|1" jointType="implement" topReferenceNode="0>0|1|0" allowsLowering="true" lowerRotLimitScale="0 0 0" upperRotationOffset="15" lowerRotationOffset="0"   >
                <distanceToGround lower="0.55" upper="1.3" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <speedRotatingParts>
        <speedRotatingPart node="0>0|0"   radius="-0.288" groundReferenceNodeIndex="1" />
    </speedRotatingParts>


    <animations>
        <animation name="moveSupport">
            <part node="0>0|2|0" startTime="0" endTime="0.3" endTrans="0 -0.699 -0.187" startTrans="0 -0.453 -0.187" />
        </animation>
    </animations>

    <workParticles>
        <particleAnimation>
            <node node="0>0|4|0|0" refNodeIndex="1" materialType="SOIL" />
        </particleAnimation>

        <particle>
            <node node="0>0|4|0|1"      refNodeIndex="1" particleType="SOIL" />
            <node node="0>0|4|0|2"  refNodeIndex="1" particleType="SOIL_SMOKE"      emitCountScale="1.5" />
            <node node="0>0|4|0|3" refNodeIndex="1" particleType="SOIL_CHUNKS"     worldSpace="false"  />
            <node node="0>0|4|0|4" refNodeIndex="1" particleType="SOIL_BIG_CHUNKS" worldSpace="false"  />
        </particle>
    </workParticles>

    <ai>
        <areaMarkers leftNode="0>0|5|0|0" rightNode="0>0|5|0|1" backNode="0>0|5|0|2" />
        <collisionTrigger node="0>0|5|1" />
        <needsLowering value="true"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-2.1" maxX="2.1" minZ="-0.2" maxZ="0.2" yOffset="0.6" />
    </foliageBending>

    <!-- <baseMaterial> -->
        <!-- <material name="kuhnDC401_mat" baseNode="kuhnDC401_vis"> -->
            <!-- <shaderParameter name="colorMat0" value="KUHN_RED1"/> -->
        <!-- </material> -->
    <!-- </baseMaterial> -->

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

</vehicle>
