<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="cultivator">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Frontgrubber</name>
        <specs>
            <neededPower>100</neededPower>
            <workingWidth>3.0</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_cultivator</function>
        </functions>
        <image>store_rabewerk.dds</image>
        <price>1700</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>RABE</brand>
        <category>cultivators</category>
        <vertexBufferMemoryUsage>415776</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>69660</indexBufferMemoryUsage>
        <textureMemoryUsage>6117072</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cultivator</typeDesc>
        <filename>RabewerkFrontgrubber.i3d</filename>
        <size width="3" length="1.5"/>
        <speedLimit value="15" />
        <components>
            <component centerOfMass="0 0.5 0.107" solverIterationCount="10" mass="350" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>

	    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels hasSurfaceSounds="false">
                    <wheel hasParticles="false" >
                        <physics rotSpeed="0" restLoad="0.4" repr="RadLinks" forcePointRatio="0.5" radius="0.20" width="0.2" mass="0.025" initialCompression="15" suspTravel="0.01" spring="0" damper="5" />
                    </wheel>
                    <wheel hasParticles="false" >
                        <physics rotSpeed="0" restLoad="0.4" repr="RadRechts" forcePointRatio="0.5" radius="0.20" width="0.2" mass="0.025" initialCompression="15" suspTravel="0.01" spring="0" damper="5" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <!-- recommended horsepower by manufacturer: 100 -->
    <powerConsumer forceNode="rabeFrontgrubber_main_component1" maxForce="13" />

    <groundReferenceNodes>
        <groundReferenceNode node="depthNode" forceFactor="1" threshold="0.1" chargeValue="1" depthNode="depthNode" maxDepth="-0.2" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="cultivator" functionName="processCultivatorArea" >
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <folding minLimit="0" maxLimit="1.0" />
        </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>
            <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>
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="sweepEffectLinkNode08">
                <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="colPart" startTime="0.0" endTime="0.50" startTrans="0 -0.119 0" endTrans="0 -0.382 0" />
        </animation>
    </animations>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotLimitScale="0 0 0" upperRotationOffset="8" lowerRotationOffset="-3" >
                <distanceToGround lower="0.4" upper="1.2" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <cultivator>
        <sounds>
            <work template="DEFAULT_CULTIVATOR_WORK" linkNode="rabeFrontgrubber_main_component1" />
        </sounds>
        <directionNode node="rabeFrontgrubber_main_component1" />
        <onlyActiveWhenLowered value="true"/>
    </cultivator>

    	    <vehicleTypeConfigurations>
        <vehicleTypeConfiguration name="Doppelherzschare" price="0" vehicleType="cultivator"/>
        <vehicleTypeConfiguration name="Flügelschare" price="400" vehicleType="cultivator">
            <objectChange node="Fluegelschare"  visibilityActive="true" />
        </vehicleTypeConfiguration>
    </vehicleTypeConfigurations>


		<designConfigurations>
		<designConfiguration name="Design 1" price="0" >
			<material name="Grubber_mat" shaderParameter="colorMat0" color="0.004 0.061 0.165" material="0"/> <!--Rahmen-->
			<material name="Grubber_mat" shaderParameter="colorMat3" color="0.27 0.025 0.025" material="0"/>  <!--Schaare-->
			<material name="Grubber_mat" shaderParameter="colorMat5" color="0.02 0.02 0.02" material="0"/> <!--Radlaufflaeche-->
			<material name="Grubber_mat" shaderParameter="colorMat7" color="0.27 0.025 0.025" material="0"/>  <!--Felge-->
		</designConfiguration>
		<designConfiguration name="Design 2" price="0" >
			<material name="Grubber_mat" shaderParameter="colorMat0" color="0.004 0.061 0.165" material="0"/> <!--Rahmen-->
			<material name="Grubber_mat" shaderParameter="colorMat3" color="0.02 0.02 0.02" material="0"/> <!--Schaare-->
			<material name="Grubber_mat" shaderParameter="colorMat5" color="0.02 0.02 0.02" material="0"/> <!--Radlaufflaeche-->
			<material name="Grubber_mat" shaderParameter="colorMat7" color="0.004 0.061 0.165" material="0"/> <!--Felge-->
		</designConfiguration>
		<designConfiguration name="Design 3" price="0" >
			<material name="Grubber_mat" shaderParameter="colorMat0" color="0.004 0.061 0.165" material="0"/> <!--Rahmen-->
			<material name="Grubber_mat" shaderParameter="colorMat3" color="0.004 0.061 0.165" material="0"/> <!--Schaare-->
			<material name="Grubber_mat" shaderParameter="colorMat5" color="0.004 0.061 0.165" material="0"/> <!--Radlaufflaeche-->
			<material name="Grubber_mat" shaderParameter="colorMat7" color="0.004 0.061 0.165" material="0"/> <!--Felge-->
		</designConfiguration>
	</designConfigurations>

			<design2Configurations  title="Unterlenkerkugeln">
		<design2Configuration name="Mit Unterlenkerkugeln" price="0"/>
		<design2Configuration name="Ohne Unterlenkerkugeln" price="0" >
			<objectChange node="lowerLinkBallRight"  visibilityActive="false" />
			<objectChange node="lowerLinkBallLeft"  visibilityActive="false" />
		</design2Configuration>
	</design2Configurations>
	
	<baseMaterial>
        <material name="Grubber_mat" baseNode="Grubber_vis">
            <shaderParameter name="colorMat0" value="0.004 0.061 0.165"/> <!--Rahmen-->
			<shaderParameter name="colorMat3" value="0.27 0.025 0.025"/> <!--Schaare-->
		    <shaderParameter name="colorMat5" value="0.019 0.019 0.019"/> <!--Radlaufflaeche-->
			<shaderParameter name="colorMat7" value="0.27 0.025 0.025"/> <!--Felge-->
        </material>
    </baseMaterial>

       <ai>
        <needsLowering value="true" />
        <areaMarkers leftNode="aiLeftMarker" rightNode="aiRightMarker" backNode="aiBackMarker" />
        <agentAttachment width="3.0" height="1.3" length="1.5" lengthOffset="0"/>
  </ai>

    <foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-1.7" maxZ="1.5" yOffset="0.4" />
    </foliageBending>

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

    <i3dMappings>
        <i3dMapping id="rabeFrontgrubber_main_component1" node="0>" />
        <i3dMapping id="Frontgrubber" node="0>0" />
        <i3dMapping id="Grubber_vis" node="0>0|5|0" />
	    <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <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="depthNode" node="0>0|1|3" />
        <i3dMapping id="aiLeftMarker" node="0>0|2|0" />
        <i3dMapping id="aiRightMarker" node="0>0|2|1" />
        <i3dMapping id="aiBackMarker" node="0>0|2|2" />
        <i3dMapping id="centerAnimation" node="0>0|3|0" />
        <i3dMapping id="smokeEmitter" node="0>0|3|0" />
        <i3dMapping id="colPart" node="0>0|4|2" />
        <i3dMapping id="RadLinks" node="0>0|4|0|1" />
        <i3dMapping id="RadRechts" node="0>0|4|1|1" />
        <i3dMapping id="HoehenverstellungLinks" node="0>0|4|0" />
        <i3dMapping id="HoehenverstellungRechts" node="0>0|4|1" />
        <i3dMapping id="Fluegelschare" node="0>0|5|1|0" />
	    <i3dMapping id="lowerLinkBallRight" node="0>0|5|2|2" />
        <i3dMapping id="lowerLinkBallLeft" node="0>0|5|2|3" />
    	<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="sweepEffectLinkNode07" node="0>0|3|7" />
        <i3dMapping id="sweepEffectLinkNode08" node="0>0|3|8" />

 </i3dMappings>
</vehicle>