<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="windrower">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
    <storeData>
        <name>Dobilas3</name>
        <specs>
            <neededPower>30</neededPower>
            <workingWidth>3</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_windrower</function>
        </functions>
        <image>store_Dobilas3.dds</image>
        <price>2780</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>windrowers</category>
		<shopTranslationOffset>0 0 0</shopTranslationOffset>
		<shopHeight>1.5</shopHeight>
		<shopRotationOffset>-4 180 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1184692</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>214608</indexBufferMemoryUsage>
        <textureMemoryUsage>8738480</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
    <base>
        <typeDesc>$l10n_typeDesc_tedder</typeDesc>
        <filename>Dobilas.i3d</filename>
        <size width="3" length="3.5" />
        <speedLimit value="12"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="400"/>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="10"/>
            <joint component1="1" component2="2" node="0>0|0" rotLimit="0 55 0" transLimit="0 0 0"/>			
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <sounds volumeFactor="1.5"/>
        <mapHotspot type="TOOL_TRAILED"/>
    </base>
	
	<wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T510/16x6_50R8.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.1" repr="0>0|1|0" forcePointRatio="0.5" initialCompression="40" suspTravel="0.1" spring="60" damper="20" rotationDamping="0.001" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T510/16x6_50R8.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.1" repr="0>0|1|1" forcePointRatio="0.5" initialCompression="40" suspTravel="0.1" spring="60" damper="20" rotationDamping="0.001" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <hubs>
            <color0 useRimColor="false" />
            <hub linkNode="0>0|1|0"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.1 0.1 0.1" />
            <hub linkNode="0>0|1|1" filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.1 0.1 0.1" />
        </hubs>
    </wheels>

	
    <rimColorConfigurations useDefaultColors="false" price="0">
       <rimColorConfiguration name="$l10n_White" color="0.9490 0.9323 0.9240 1" />
       <rimColorConfiguration name="$l10n_Green" color="0.0395 0.2015 0.0242 0" /> 
       <rimColorConfiguration name="$l10n_Yellow" color="0.8913 0.4368 0.0278 1" />  
    </rimColorConfigurations>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="1>0|0" rootNode="1>" jointType="implement">
			<objectChange node="1>0" visibilityActive="true" visibilityInactive="false"/>
                <distanceToGround lower="0.3871" upper="0.3871" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce>0.05</brakeForce>
    </attachable>
	
	
	<powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="0>0|6|1" />
        <local startNode="0>0|6|3" endNode="0>0|6|2" />
    </powerTakeOffs>
	
    <powerConsumer ptoRpm="540" neededMaxPtoPower="25"/>
	
	<attacherJoints>
        <attacherJoint node="0>0|13" jointType="windrowerFlap" upperTransLimit="0 0 0" upperRotLimit="0 0 0" lowerTransLimit="0 0 0" lowerRotLimit="0 0 0" allowsLowering="false" >
			<schema position="1 0" rotation="0" />
			<!-- move work area away when windrower is attached, to let it windrow! -->
			<objectChange node="0>0|8" translationInactive="0 0.201 0.2" translationActive="0 2 0.2" />
			<objectChange node="0>0|2" rotationInactive="0 0 0" rotationActive="0 55 0" />
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" />
        </sounds>
    </attacherJoints>
	
	<groundReferenceNodes>
		<groundReferenceNode node="0>0|8|0|3" threshold="0.3" />
	</groundReferenceNodes>
	
	 <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="0>0|15|0|0" length="1.4" diameter="0.02">
			<objectChange node="0>0|15|0|2" visibilityActive="true" visibilityInactive="false"/>
			<objectChange node="0>0|15|0|1" visibilityActive="false" visibilityInactive="true"/>
			</hose>
    </connectionHoses>

	<workAreas>
		<workArea type="tedder" functionName="processTedderArea" preprocessFunctionName="preprocessTedderArea" disableBackwards="false">
			<area startNode="0>0|8|0|0" widthNode="0>0|8|0|1" heightNode="0>0|8|0|2" />
			<groundReferenceNode index="1" />
			<folding minLimit="0" maxLimit="0.1" />
			<tedder dropWindrowWorkAreaIndex="2" particleSystemIndex="1"/>
		</workArea>
		<workArea type="auxiliary">
			<area startNode="0>0|9|0|0" widthNode="0>0|9|0|1" heightNode="0>0|9|0|2" />
		</workArea>
	</workAreas>
	
	 <animations>
        <animation name="moveSupport">
            <part node="0>0|4" startTime="0.5" duration="0.20" startTrans="0.079 0.547 1.596" endTrans="0.047 0.206 1.752"/>		
            <sound template="sheetImp01" startTime="0.49" volumeScale="1" pitchScale="0.8" linkNode="attacherJoint"/>
            <sound template="latchSmall" startTime="0.49" volumeScale="0.1" pitchScale="1.6" linkNode="attacherJoint"/>
            <sound template="sheetImp05" startTime="0.2" volumeScale="1" pitchScale="1.2" linkNode="attacherJoint"/>
        </animation>
		
		<animation name="folding">
			<part node="0>0|1|2"  startTime="0.8" endTime="1" startRot="0 0 -90" endRot="0 0 0" />
			<part node="0>0|1"  startTime="0" endTime="0.8" startTrans="-0.001 0.3 -1.039" endTrans="-0.001 0.235 -1.039" />
            <sound template="defaultHydraulicSound" startTime="0.9" endTime="1.99" volumeScale="1" pitchScale="1.1" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="sheetImp01" startTime="1.99" volumeScale="1.1" pitchScale="0.8"/>
            <sound template="sheetImp03" startTime="0.99" volumeScale="1.1" pitchScale="0.7"/>
		</animation>
		
		<animation name="rotateRake" looping="true">
			<part node="0>0|2|0" startTime="0" endTime="7990" animationClip="rakeAnimation" clipStartTime="0" clipEndTime="8000" />
			<part node="0>0|2|0" startTime="7990" endTime="0" animationClip="rakeAnimation" clipStartTime="8000" clipEndTime="0" />
		</animation>	
		<animation name="rotateBelt" looping="true">
			<part node="0>0|5" startTime="0" endTime="1.999" shaderParameter="offsetUV" shaderStartValues="0 0 0 0" shaderEndValues="0.999 0 0 0" />
			<part node="0>0|5" startTime="1.999" endTime="2" shaderParameter="offsetUV" shaderStartValues="0.999 0 0 0" shaderEndValues="0 0 0 0" />			
		</animation>	
		<animation name="rotateDisc" looping="true">
			<part node="0>0|3" startTime="0" endTime="1.999" startRot="0 0 0" endRot="0 -359 0" />
			<part node="0>0|3" startTime="1.999" endTime="2" startRot="0 -359 0" endRot="0 0 0" />
		</animation>	
		<animation name="rotatePTO" looping="true">
			<part node="0>0|6|0" startTime="0" endTime="1.999" startRot="0 0 0" endRot="0 0 359" />
			<part node="0>0|6|0" startTime="1.999" endTime="2" startRot="0 0 359" endRot="0 0 0" />
		</animation>		
    </animations>
	
	<tedder fillTypeConverter="TEDDER">
		<effects>
			<effect workAreaIndex="1">
				<effectNode effectClass="ParticleEffect" effectNode="0>0|10|0" particleType="WINDROWER"  />
			</effect>
		</effects>
	</tedder>

	
	<turnOnVehicle turnOffIfNotAllowed="true">
		<turnedOnAnimation name="rotateRake" speedScale="6000" turnOnFadeTime="1.0" turnOffFadeTime="1.5" />
		<turnedOnAnimation name="rotateBelt" speedScale="1" turnOnFadeTime="1.0" turnOffFadeTime="1.5" />
		<turnedOnAnimation name="rotateDisc" speedScale="2" turnOnFadeTime="1.0" turnOffFadeTime="1.5" />
		<turnedOnAnimation name="rotatePTO" speedScale="15" turnOnFadeTime="1.0" turnOffFadeTime="2" />
		<sounds>
			<work template="DEFAULT_TEDDER" linkNode="0>" />
		</sounds>
	</turnOnVehicle>
	
    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
				<foldingParts startMoveDirection="1" foldMiddleAnimTime="0.8" turnOnFoldMaxLimit="0.8" turnOnFoldMinLimit="0" >
					<foldingPart animationName="folding" speedScale="1.0" />
				</foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
	
	<cylindered>
		<movingTools>
			<movingTool node="0>0|1" wheelIndices="1 2" />
		</movingTools>
			
		<sounds>
			<hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
		</sounds>
	</cylindered>

	<ai>
		<needsLowering value="true" />
		<areaMarkers leftNode="0>0|14|0|0" rightNode="0>0|14|0|1" backNode="0>0|14|0|2" />
		<collisionTrigger node="0>0|14|0|3|0" />
	</ai>

    <foliageBending>
        <bendingNode minX="-1.3" maxX="0.91" minZ="-1.8" maxZ="1.096" yOffset="0.2" />
    </foliageBending>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
	
	<baseMaterial>
		<material name="MainFrame" baseNode="0>0">
            <shaderParameter name="colorMat0" value="0.4936 0.0008 0.0020 1"/>
            <shaderParameter name="colorMat1" value="0.8913 0.4368 0.0278 1"/>
        </material>
		<material name="Axle" baseNode="0>0|1">
            <shaderParameter name="colorMat0" value="0.4936 0.0008 0.0020 1"/>
        </material>
		<material name="FrameSupport" baseNode="0>0|1|2|0">
            <shaderParameter name="colorMat0" value="0.4936 0.0008 0.0020 1"/>
        </material>
		<material name="Rotor" baseNode="0>0|2|0|0">
            <shaderParameter name="colorMat0" value="0.4936 0.0008 0.0020 1"/>
        </material>
		<material name="Pulley" baseNode="0>0|3|0">
            <shaderParameter name="colorMat0" value="0.4936 0.0008 0.0020 1"/>
        </material>
		<material name="Support" baseNode="0>0|4|0">
            <shaderParameter name="colorMat0" value="0.4936 0.0008 0.0020 1"/>
        </material>
		<material name="PTO" baseNode="0>0|6|0">
            <shaderParameter name="colorMat0" value="0.4936 0.0008 0.0020 1"/>
        </material>
		<material name="SupportPin" baseNode="0>0|7|0">
            <shaderParameter name="colorMat0" value="0.4936 0.0008 0.0020 1"/>
        </material>
		<material name="Spikes" baseNode="0>0|2|0|1|0">
            <shaderParameter name="colorMat0" value="0.8913 0.4368 0.0278 1"/>
            <shaderParameter name="colorMat1" value="0.0399 0.0399 0.0399 1"/>
        </material>
    </baseMaterial>
	
	 <baseMaterialConfigurations useDefaultColors="false">
        <baseMaterialConfiguration name="$l10n_Red" color="0.4936 0.0008 0.0020 1" />
        <baseMaterialConfiguration name="$l10n_Green" color="0.0395 0.2015 0.0242 1" />
		<material name="MainFrame" shaderParameter="colorMat0" />
		<material name="Axle" shaderParameter="colorMat0" />
		<material name="FrameSupport" shaderParameter="colorMat0" />
		<material name="Rotor" shaderParameter="colorMat0" />
		<material name="Pulley" shaderParameter="colorMat0" />	
		<material name="Support" shaderParameter="colorMat0" />	
		<material name="PTO" shaderParameter="colorMat0" />	
		<material name="SupportPin" shaderParameter="colorMat0" />								
    </baseMaterialConfigurations>
	
</vehicle>
