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

    <storeData>
        <name>Frontpacker</name>
        <specs>
            <neededPower>100</neededPower>
            <workingWidth>3.0</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_cultivator</function>
        </functions>
        <image>store_wimmer.dds</image>
        <price>1500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand name="WIMMER" title="Wimmer" image="brand.png"/>
        <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>wimmer.i3d</filename>
        <size width="3" length="1.5"/>
        <speedLimit value="15" />
        <components>
            <component centerOfMass="0 0.5 0" solverIterationCount="10" mass="1150" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>
	
	    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels hasSurfaceSounds="false">
                    <wheel hasParticles="false" >
                        <physics rotSpeed="0" restLoad="0.4" repr="frontRoller" forcePointRatio="0.5" radius="0.20" width="0.2" mass="0.1" initialCompression="15" suspTravel="0.01" spring="0" damper="5" rotationDamping="0.001" />
                    </wheel>
                    <wheel hasParticles="false" >
                        <physics rotSpeed="0" restLoad="0.4" repr="backRoller" forcePointRatio="0.5" radius="0.20" width="0.2" mass="0.1" initialCompression="15" suspTravel="0.01" spring="0" damper="5" rotationDamping="0.001" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>
	
	<lights>
		<sharedLight linkNode="rear2ChamberLight_02_left"          filename="$data/shared/assets/lights/lizard/rear2ChamberLight_02_left.xml" />
        <sharedLight linkNode="rear2ChamberLight_02_right"         filename="$data/shared/assets/lights/lizard/rear2ChamberLight_02_right.xml" />
		
        <realLights>
            <high>
                <light node="backLightsHigh" lightTypes="0" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
            </high>
        </realLights>
    </lights>
	
    <vehicleTypeConfigurations>
        <vehicleTypeConfiguration name="$l10n_avecF" price="100" vehicleType="cultivator">
            <objectChange node="feux"  visibilityActive="true" />
        </vehicleTypeConfiguration>
        <vehicleTypeConfiguration name="$l10n_sansF" price="0" vehicleType="cultivator">
            <objectChange node="feux"  visibilityActive="false" />
        </vehicleTypeConfiguration>
    </vehicleTypeConfigurations>

    <!-- recommended horsepower by manufacturer: 100 -->
    <powerConsumer forceNode="rabeFront_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>
        <particleAnimation>
            <node node="centerAnimation" refNodeIndex="1" materialType="SOIL" />
        </particleAnimation>
        <particle>
            <node node="soilEmitShape" refNodeIndex="1" particleType="SOIL" worldSpace="false" speedThreshold="6" />
            <node node="dustEmitterShape" refNodeIndex="1" particleType="SOIL_SMOKE" speedThreshold="1" />
            <node node="chunkEmitShape" refNodeIndex="1" particleType="SOIL_CHUNKS" worldSpace="false" speedThreshold="9" />
        </particle>
    </workParticles>

    <animations>
        <animation name="moveSupport">
            <part node="colPart" startTime="0.0" endTime="0.50" startTrans="0.072 0.415 4.193" endTrans="0.072 0.084 4.193" />
        </animation>
    </animations>

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

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

    <ai>
        <needsLowering value="true" />
        <areaMarkers leftNode="aiLeftMarker" rightNode="aiRightMarker" backNode="aiBackMarker" />
    </ai>

    <foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-1.7" maxZ="1.5" yOffset="0.4" />
    </foliageBending>
	
	<baseMaterial>
        <material name="rabeFront_mat" baseNode="rabeFront_vis">
            <shaderParameter name="colorMat0" value="0 0.24 0 1"/>
        </material>
    </baseMaterial>

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

    <i3dMappings>
        <i3dMapping id="rabeFront_main_component1" node="0>" />
        <i3dMapping id="rabeFront_vis" node="0>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="dustEmitterShape" node="0>0|3|1" />
        <i3dMapping id="soilEmitShape" node="0>0|3|2" />
        <i3dMapping id="chunkEmitShape" node="0>0|3|3" />
        <i3dMapping id="colPart" node="0>0|4|0" />
        <i3dMapping id="frontRoller" node="0>0|4|2" />
        <i3dMapping id="backRoller" node="0>0|4|1" />
		<i3dMapping id="rear2ChamberLight_02_left" node="0>0|5|1|0" />
		<i3dMapping id="rear2ChamberLight_02_right" node="0>0|5|1|1" />
		<i3dMapping id="backLightsHigh" node="0>0|5|1|2|0|0" />
		<i3dMapping id="turnLightLeftBack" node="0>0|5|1|2|1|0" />
		<i3dMapping id="turnLightRightBack" node="0>0|5|1|2|1|1" />
		<i3dMapping id="feux" node="0>0|5|1" />
    </i3dMappings>
</vehicle>