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

    <storeData>
        <name>Opal 110 3</name>
        <specs>
            <neededPower>80</neededPower>
            <workingWidth>1.15</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_plow</function>
        </functions>
        <image>store3.dds</image>
        <price>8500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LEMKEN</brand>
        <category>plows</category>
        <shopTranslationOffset>0 -0.13 1.2</shopTranslationOffset>		
        <vertexBufferMemoryUsage>1344160</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>193356</indexBufferMemoryUsage>
        <textureMemoryUsage>6990840</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_plow</typeDesc>
        <filename>lemkenopal110_3.i3d</filename>
        <size width="3" length="5" widthOffset="-0.3" lengthOffset="-2.2"/>
        <speedLimit value="14" />
        <components>
            <component centerOfMass="0.229 0.842 -1.433" solverIterationCount="10" mass="600" />
        </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.5" restLoad="0.7" repr="0>2|1|14|3|1" width="0.5" useReprDirection="true" forcePointRatio="0.2" radius="0.3" initialCompression="50" suspTravel="0.05" spring="18" damper="50" rotationDamping="0.006"/>
				    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>
    
	<powerConsumer forceNode="0>" maxForce="30" />
	
	<groundReferenceNodes>
        <groundReferenceNode node="0>2|1" threshold="1" />
        <groundReferenceNode node="0>2|1|12" threshold="0.2" depthNode="0>2|1|12"/>
        <groundReferenceNode node="0>2|1|13" threshold="0.2" depthNode="0>2|1|13"/>
    </groundReferenceNodes>
	
	<workAreas>
        <workArea type="plow" functionName="processPlowArea" >
            <area startNode="0>2|1|3" widthNode="0>2|1|4" heightNode="0>2|1|5" />
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>
	
	<workParticles>
	    <particleAnimation>
            <node node="0>2|1|16|0|0" materialType="SOIL" refNodeIndex="2"/>
            <node node="0>2|1|16|0|2" materialType="SOIL" refNodeIndex="2"/>
			<node node="0>2|1|16|0|3" materialType="SOIL" refNodeIndex="2"/>
			<node node="0>2|1|16|0|4" materialType="SOIL" refNodeIndex="2"/>
			<node node="0>2|1|16|0|5" materialType="SOIL" refNodeIndex="2"/>
			<node node="0>2|1|16|0|6" materialType="SOIL" refNodeIndex="2"/>
            <node node="0>2|1|16|2|0" materialType="SOIL" refNodeIndex="3"/>
            <node node="0>2|1|16|2|2" materialType="SOIL" refNodeIndex="3"/>
			<node node="0>2|1|16|2|3" materialType="SOIL" refNodeIndex="3"/>
			<node node="0>2|1|16|2|4" materialType="SOIL" refNodeIndex="3"/>
			<node node="0>2|1|16|2|5" materialType="SOIL" refNodeIndex="3"/>
			<node node="0>2|1|16|2|6" materialType="SOIL" refNodeIndex="3"/>
        </particleAnimation>

       <particle>
            <node node="0>2|1|16|0|1" particleType="SOIL_SMOKE" refNodeIndex="2" />
			<node node="0>2|1|16|4" particleType="SOIL" refNodeIndex="2" emitCountScale="1.5"/>
			<node node="0>2|1|16|5" particleType="SOIL_CHUNKS" refNodeIndex="2" worldSpace="false"/>
			<node node="0>2|1|16|6" particleType="SOIL_BIG_CHUNKS" refNodeIndex="2" worldSpace="false"/>
			
			<node node="0>2|1|16|2|1" particleType="SOIL_SMOKE" refNodeIndex="3" />
			<node node="0>2|1|16|7" particleType="SOIL" refNodeIndex="3" emitCountScale="1.5"/>
			<node node="0>2|1|16|8" particleType="SOIL_CHUNKS" refNodeIndex="3" worldSpace="false"/>
			<node node="0>2|1|16|9" particleType="SOIL_BIG_CHUNKS" refNodeIndex="3" worldSpace="false"/>
        </particle>
    </workParticles>
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0" jointType="implement" topReferenceNode="0>1" upperRotationOffset="12">
                <distanceToGround lower="0.35" upper="1.3"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="0>2|0|1"  length="1.3" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>2|2" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>2|0|2" length="1.3" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>2|2" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>
	
	<animations>
        <!-- move wheel down/up -->
        <animation name="rotatePlough">
            <part node="0>2|1|14" startTime="0.5" endTime="2.5" startRot="-50 0 0" endRot="90 0 0" />
            <part node="0>2|1|14" startTime="2.5" endTime="4.5" startRot="90 0 0" endRot="230 0 0" />
            <!-- plough rot -->
            <part node="0>2|1"     startTime="0.5" endTime="2.5" startRot="0 0 0" endRot="0 0 90" />
            <part node="0>2|1"     startTime="2.5" endTime="4.5" startRot="0 0 90" endRot="0 0 180" />
			
			<part node="0>2|2|0"     startTime="0" endTime="2.5" visibility="true" />
			<part node="0>2|2|0"     startTime="2.5" endTime="4.5" visibility="false" />
			
            <part node="0>2|1|0|0|0" startTime="1.90" endTime="1.95" visibility="true" />
            <part node="0>2|1|0|0|0" startTime="1.95" endTime="2.00" visibility="false" />
            <part node="0>2|1|0|0|1" startTime="0.0" endTime="1.95" visibility="false" />
            <part node="0>2|1|0|0|1" startTime="1.95" endTime="4.5" visibility="true" />
        </animation>

        <animation name="moveSupport">    
            <part node="0>2|1|0|0|0" startTime="0" endTime="0.3" startRot="90 0 0" endRot="0 0 0" />
            <part node="0>2|1|0|0|1" startTime="0" endTime="0.3" startRot="90 0 0" endRot="180 0 0" />
            <part node="0>2|1|17|0" startTime="0" endTime="0.3" startTrans="-0.421 0 0.154" endTrans="-0.421 -0.34 0.154" />
            <part node="0>2|1|17|1" startTime="0" endTime="0.3" startTrans="-0.421 0 0.154" endTrans="-0.421 0.34 0.154" />
        </animation>
    </animations>
	
	<cylindered>
	    <movingTools>
            <movingTool node="0>2|1" wheelIndices="1">
                <dependentPart node="0>2|0" />
            </movingTool>
        </movingTools>

        <movingParts isActiveDirtyTimeOffset="3">
           <movingPart node="0>2|0" referencePoint="0>2|1|10" referenceFrame="0>2|4" >
               <translatingPart node="0>2|0|0" />
            </movingPart>
        </movingParts>
		
		<sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>
	
	<plow>
        <rotationPart turnAnimationName="rotatePlough"/>
        <rotateLeftToMax value="true"/>

        <sounds>
            <turn template="DEFAULT_PLOW_TURN" linkNode="0>" />
            <work template="DEFAULT_PLOW_WORK" linkNode="0>" />
        </sounds>
    </plow>
	
	<baseMaterial>
        <material name="piasta" baseNode="0>2">
		    <shaderParameter name="colorMat3" material="0" value="LEMKEN_BLUE1"/>
        </material>
		<material name="plozy" baseNode="0>2">
		    <shaderParameter name="colorMat2" material="0" value="LEMKEN_BLUE1"/>
        </material>
    </baseMaterial>
	
	<baseMaterialConfigurations useDefaultColors="false" price="100" defaultColorIndex="0">
        <baseMaterialConfiguration name="LEMKEN 1" color="LEMKEN_BLUE1"/>
        <baseMaterialConfiguration name="LEMKEN 2" color="LEMKEN_RED1"/>
        <baseMaterialConfiguration name="LEMKEN 3" color="1 1 1 0" material="18" />		
        <material name="piasta" shaderParameter="colorMat3" />
    </baseMaterialConfigurations>
	
	<designMaterialConfigurations price="150" useDefaultColors="false" defaultColorIndex="0">
	    <designMaterialConfiguration name="LEMKEN 1" color="LEMKEN_BLUE1"/>
		<designMaterialConfiguration name="LEMKEN 2" color="0.02 0.02 0.02 0" material="0"/>
        <material name="plozy" shaderParameter="colorMat2" />
    </designMaterialConfigurations>
	
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="50" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
	<ai>
        <needsLowering value="true" />
        <areaMarkers leftNode="0>2|1|6" rightNode="0>2|1|7" backNode="0>2|1|8" />
        <sizeMarkers leftNode="0>2|1|6" rightNode="0>2|1|7" backNode="0>2|1|8" />
        <hasNoFullCoverageArea value="true" />
    </ai>

    <speedRotatingParts>
        <speedRotatingPart node="0>2|1|1" radius="0.22" invertDirectionOnRotation="true" turnAnimLimit="0.05" turnAnimLimitSide="-1" groundReferenceNodeIndex="1" />
        <speedRotatingPart node="0>2|1|2" radius="0.22" invertDirectionOnRotation="true" turnAnimLimit="0.05" turnAnimLimitSide="1"  groundReferenceNodeIndex="1" />
        <speedRotatingPart node="0>2|1|14|3" radius="-0.3" invertDirectionOnRotation="true" turnAnimLimit="0.05" turnAnimLimitSide="-1" groundReferenceNodeIndex="1" />
        <speedRotatingPart node="0>2|1|14|3" radius="-0.3" invertDirectionOnRotation="true" turnAnimLimit="0.05" turnAnimLimitSide="1" groundReferenceNodeIndex="1" />
    </speedRotatingParts>

</vehicle>