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

    <storeData>
        <name>435 Twine</name>
        <specs>
            <neededPower>55</neededPower>
        </specs>
        <functions>
            <function>$l10n_function_baler</function>
        </functions>
        <image>store435Twine.dds</image>
        <price>12692</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JOHNDEERE</brand>
        <category>balersRound</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <vertexBufferMemoryUsage>1204440</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>197496</indexBufferMemoryUsage>
        <textureMemoryUsage>7340240</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_baler</typeDesc>
        <filename>435.i3d</filename>
        <size width="3.5" length="5"/>
        <speedLimit value="20"/>
        <components>
            <component centerOfMass="0 0.97002226 0.62475145" solverIterationCount="10" mass="1530"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds volumeFactor="1"/>
    </base>
	
	<wheels>
        <wheelConfigurations>
			<wheelConfiguration name="default" price="0" brand="FIRESTONE" saveId="DEFAULT">
                <wheels>
                    <wheel filename="Wheels/Float.xml" isLeft="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="3.9" repr="0>2|0" forcePointRatio="0.5" initialCompression="30" suspTravel="0.3" spring="40" damper="40"/>
                    </wheel>
                    <wheel filename="Wheels/Float.xml" isLeft="false">
                        <physics tipOcclusionAreaGroupId="2" restLoad="3.9" repr="0>2|1" forcePointRatio="0.5" initialCompression="30" suspTravel="0.3" spring="40" damper="40"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
		
		<dynamicallyLoadedWheels>
            <dynamicallyLoadedWheel linkNode="0>1|1|4"  filename="Wheels/Narrow.xml" isLeft="true"/>
            <dynamicallyLoadedWheel linkNode="0>1|1|5" filename="Wheels/Narrow.xml" isLeft="false"/>
        </dynamicallyLoadedWheels>
    </wheels>
	
	<speedRotatingParts>
        <speedRotatingPart node="0>1|1|4" radius="0.25" groundReferenceNodeIndex="1"/>
        <speedRotatingPart node="0>1|1|5" radius="0.25" groundReferenceNodeIndex="1"/>
		
		<speedRotatingPart node="0>1|7|0|2|1|0"  radius="0.4" groundReferenceNodeIndex="1"/>
        <speedRotatingPart node="0>1|7|1|2|1|0"  radius="0.4" groundReferenceNodeIndex="1"/>
    </speedRotatingParts>
	
	<dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="0>10|0" filename="$data/shared/connectionHoses/connectors.i3d"/>
        <dynamicallyLoadedPart node="1|0" linkNode="0>10|1" filename="$data/shared/connectionHoses/connectors.i3d"/>
    </dynamicallyLoadedParts>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>3|0" jointType="trailerLow" attacherHeight="0.6"/>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="0.5"/>
    </attachable>
	
	<designConfigurations>
		<designConfiguration name="Twine" price="0">
			<objectChange node="0>1|0|9" visibilityActive="false" />
		</designConfiguration>
    </designConfigurations>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="0>11|0" length="1.5" diameter="0.02">
            <objectChange node="0>10" visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="0>11" visibilityActive="true" visibilityInactive="false"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>11|1" length="1.55" diameter="0.02">
            <objectChange node="0>10" visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="0>11" visibilityActive="true" visibilityInactive="false"/>
        </hose>
    </connectionHoses>
	
    <powerTakeOffs>
        <input inputNode="0>3|1" detachNode="0>3|2" inputAttacherJointIndices="1" aboveAttacher="true" filename="$data/shared/assets/powerTakeOffs/walterscheidWWZ.xml"/>
    </powerTakeOffs>

    <powerConsumer ptoRpm="470" neededMinPtoPower="15" neededMaxPtoPower="35"/>
	
	<!--<designConfigurations>
				<designConfiguration name="560m" price="0">
					<objectChange node="0>0|10" visibilityActive="false" visibilityInactive="true"/>
					<objectChange node="0>0|2|1" visibilityActive="false" visibilityInactive="true"/>
					<objectChange node="0>0|3|1" visibilityActive="false" visibilityInactive="true"/>
				</designConfiguration>
				<designConfiguration name="560m Silage Special" price="5000" icon="$dataS2/menu/hud/configurations/config_edition.png">
					<objectChange node="0>0|10" visibilityActive="true" visibilityInactive="false"/>
				    <objectChange node="0>0|2|1" visibilityActive="true" visibilityInactive="false"/>
					<objectChange node="0>0|3|1" visibilityActive="true" visibilityInactive="false"/>
				</designConfiguration>
	</designConfigurations>-->
	
	<!--<lights>
	 <sharedLight linkNode="0>1|0|9|1|0" filename="$data/shared/assets/reflectors/lizard/bigTriangle.xml" />
	 <sharedLight linkNode="0>1|0|6" filename="$data/shared/assets/reflectors/lizard/bigTriangle.xml" />
    </lights>-->

    <groundReferenceNodes>
        <groundReferenceNode node="0>1|1|6" threshold="0.5"/>
		<groundReferenceNode node="0>1|1|2" threshold="0.5"/>
    </groundReferenceNodes>

    <workAreas>
        <workArea type="baler" functionName="processBalerArea" disableBackwards="false" >
            <area startNode="0>5|0" widthNode="0>5|1" heightNode="0>5|2" />
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>

    <pickup>
        <animation name="rotatePickup" lowerSpeed="2" liftSpeed="-1" />
    </pickup>
    
    <turnOnVehicle>
        <sounds>
            <start template="rollbeltWorkStart" />
            <work template="rollbeltLoop" />
            <stop template="rollbeltWorkStop" />
        </sounds>
    </turnOnVehicle>

    <baler maxPickupLitersPerSecond="365">
        <additives fillUnitIndex="2" usage="0.0000275" fillTypeCategories="windrow"/>
        
        <baleTypes>
			<baleType isRoundBale="true" width="1.2" diameter="1.25">
                <nodes baleNode="0>7|1|0" />
                <animations fillAnimation="fillAnimation125" unloadAnimation="unloadBale" unloadAnimationSpeed="1.0" />
            </baleType>
			<baleType isRoundBale="true" width="1.2" diameter="1.50">
                <nodes baleNode="0>7|1|0" />
                <animations fillAnimation="fillAnimation125" unloadAnimation="unloadBale" unloadAnimationSpeed="1.0" />
            </baleType>
			<baleType isRoundBale="true" width="1.2" diameter="1.80">
                <nodes baleNode="0>7|1|0" />
                <animations fillAnimation="fillAnimation125" unloadAnimation="unloadBale" unloadAnimationSpeed="1.0" />
            </baleType>
        </baleTypes>

        <automaticDrop enabled="false" toggleable="true"/>

        <baleAnimation closeAnimationName="closeDoor" closeAnimationSpeed="0.5"/>

        <fillEffect>
            <effectNode effectClass="TypedMotionPathEffect" effectType="PICKUPIN" linkNode="0>1|1|3|3">
                <motionPathEffect textureFilename="Textures/pickupEffectArray.dds" numRows="12" rowLength="10" minFade="0.15" shapeScale="0.85" speedScale="1.7"/>
            </effectNode>
            <effectNode effectClass="TypedMotionPathEffect" effectType="PICKUPIN" linkNode="0>8|0">
                <motionPathEffect textureFilename="Textures/liftupEffectArray.dds" numRows="10" rowLength="10" delay="0.25" shapeScale="1.0j"/>
            </effectNode>
            <effectNode effectClass="ParticleEffect" effectNode="0>1|1|3|1" particleType="SMOKE" materialType="smokeParticle" emitCountScale="0.1"/>
            <effectNode effectClass="ParticleEffect" effectNode="0>1|1|3|1" particleType="SMOKE" materialType="smokeParticle" emitCountScale="0.2" worldSpace="false"/>
        </fillEffect>

        <animationNodes>
            <animationNode node="0>1|1|0|0" rotSpeed="-1000" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="3" />
			<animationNode node="0>1|4" rotSpeed="1000" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="3" />
			

            <!--<animationNode node="0>0|5" rotSpeed="-90" shaderParameterName="offsetUV" shaderComponentScale="1 0 0 0" turnOnFadeTime="2" turnOffFadeTime="3" />
            <animationNode node="0>0|6"   rotSpeed="-90" shaderParameterName="offsetUV" shaderComponentScale="1 0 0 0" turnOnFadeTime="2" turnOffFadeTime="3" />
            <animationNode node="0>1|3|0|0|0" rotSpeed="-90" shaderParameterName="offsetUV" shaderComponentScale="1 0 0 0" turnOnFadeTime="2" turnOffFadeTime="3" />
			<animationNode node="0>1|0|3" rotSpeed="-90" shaderParameterName="offsetUV" shaderComponentScale="1 0 0 0" turnOnFadeTime="2" turnOffFadeTime="3" />-->
			
			<animationNode node="0>0|4"   rotSpeed="-50" turnOnFadeTime="2" turnOffFadeTime="2" shaderComponentScale="0 1 0 0" shaderParameterName="offsetUV"/>
            <!--<animationNode node="0>0|6"      rotSpeed="-90" turnOnFadeTime="2" turnOffFadeTime="3" shaderComponentScale="1 0 0 0" shaderParameterName="offsetUV" />-->
            <animationNode node="0>1|3|0|0" rotSpeed="-50" turnOnFadeTime="2" turnOffFadeTime="3" shaderComponentScale="0 1 0 0" shaderParameterName="offsetUV" />
			<animationNode node="0>1|0|3" rotSpeed="50" turnOnFadeTime="2" turnOffFadeTime="3" shaderComponentScale="0 1 0 0" shaderParameterName="offsetUV" />
			<animationNode node="0>1|0|8|0" rotSpeed="-25" turnOnFadeTime="2" turnOffFadeTime="3" shaderComponentScale="0 1 0 0" shaderParameterName="offsetUV" />
			
			<animationNode node="0>1|0|9|2" rotSpeed="-100" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="3" />
			<animationNode node="0>1|0|9|3" rotSpeed="-100" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="3" />
			<animationNode node="0>1|0|9|4" rotSpeed="-100" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="3" />
			
			
            

			
			<!-- <animationNode class="ScrollingAnimation" node="0>0|12|9" scrollSpeed="0.3" />
            <animationNode class="ScrollingAnimation" node="0>0|12|8" scrollSpeed="0.3" /> -->
        </animationNodes>
    </baler>

    <animations>
		<animation name="unfold">
            <!--<part node="0>1|7|0" startTime="0" endTime="0.5" startRot="-16 0 0" endRot="-8 0 0" />
			<part node="0>1|7|1" startTime="0" endTime="0.5" startRot="-16 0 0" endRot="-8 0 0" />-->
			
			<part node="0>1|7|0" startTime="0.75" endTime="1.5" startRot="20 0 0" endRot="-16 0 0" />
			<part node="0>1|7|1" startTime="0.75" endTime="1.5" startRot="20 0 0" endRot="-16 0 0" />
        </animation>
        <animation name="moveSupport">
            <part node="0>9|0" startTime="0.25" endTime="0.45" startTrans="0.092 -0.288 0" endTrans="0.092 -0.556 0" />
		    <!--<part node="0>9" startTime="0" endTime="0.01" vilisibiltyActive="true"/>
			<part node="0>9" startTime="0.01" endTime="0.02" vilisibiltyActive="false"/>-->
			<part node="0>9|1" startTime="0.5" endTime="0.65" startRot="0 1800 0" endRot="0 0 0" />
			<part node="0>9" startTime="0.05" endTime="0.2" startTrans="0.18523923 1.04712105 1.69003606" endTrans="0.0956491 0.80648702 2.46815991" />
			<part node="0>9" startTime="0.05" endTime="0.2" startRot="-73.34729767 -9.30450249 -2.76874447" endRot="0 0 0" />
			
        </animation>

        <animation name="rotatePickup">
            <part node="0>1|1" startTime="0" endTime="1" startRot="-23.755 0 0" endRot="2 0 0" />
                    <sound template="hydraulicOpen02" startTime="0.01" endTime="1.3" direction="1"  volumeScale="1"   pitchScale="1" fadeIn="0.1" fadeOut="0.2" linkNode="0>1|1"/>
                    <sound template="hydraulicOpen02" startTime="0.01" endTime="1"   direction="-1" volumeScale="1.8" pitchScale="1" fadeIn="0.1" fadeOut="0.2" linkNode="0>1|1"/>
                    <sound template="clackVar6" startTime="1.2" direction="1"  volumeScale="0.7" pitchScale="0.7" linkNode="0>1|1"/>
                    <sound template="clackVar6" startTime="0.1" direction="-1" volumeScale="1.2" pitchScale="0.9" linkNode="0>1|1"/>
                    <sound template="sheetImp02" startTime="0.1" direction="-1" volumeScale="1.5" pitchScale="1.4" linkNode="0>1|1"/>
                </animation>


        <animation name="fillAnimation125" resetOnStart="false">
            <part node="0>7|1" startTime="0.0" endTime="1.0" startScale="1 0.1 0.1" endScale="1 1 1" startTrans="0.004 0.6072886 -0.93599999" endTrans="0.004 1.54200006 -0.93599999"/>
        </animation>
		
		<animation name="unloadBale">
            <part node="0>1|0" startTime="0.1" endTime="2" startRot="0 0 0" endRot="78 0 0" />
			<part node="0>0|7|0" startTime="0.6" endTime="1.5" startRot="-173.51899719 0 0" endRot="-127.18266296 0 0" />
			<part node="0>0|7|0" startTime="1.85" endTime="3.75" startRot="-127.18266296 0 0" endRot="-173.51899719 0 0" />
            <part node="0>7|1" startTime="0" endTime="1" startRot="0 0 0" endRot="25 0 0" startTrans="0.004 1.545 -0.833" endTrans="0 1.564 -1.042" />
            <part node="0>7|1" startTime="1" endTime="1.5" startRot="25 0 0" endRot="0 0 0" startTrans="0 1.564 -1.042" endTrans="0.004 1.309 -1.245" />
            <part node="0>7|1" startTime="1.5" endTime="1.75" startRot="0 0 0" endRot="-40 0 0" startTrans="0.004 1.309 -1.245" endTrans="0.004 1.19 -1.366" />
            <part node="0>7|1" startTime="1.75" endTime="2" startRot="-30 0 0" endRot="-80 0 0" startTrans="0.004 1.19 -1.366" endTrans="0.004 1.036 -1.483" />
            <part node="0>7|1" startTime="2" endTime="2.5" startRot="-60 0 0" endRot="-120 0 0" startTrans="0.004 1.036 -1.483" endTrans="0.004 0.695 -1.791" />
            <part node="0>7|1" startTime="2.5" endTime="3" startRot="-110 0 0" endRot="-160 0 0" startTrans="0.004 0.980 -1.853" endTrans="0.004 0.368 -2.397" />
            <part node="0>7|1" startTime="3" endTime="3.5" startRot="-110 0 0" endRot="-200 0 0" startTrans="0.004 0.980 -1.853" endTrans="0.004 0.289 -3.033" />
            <part node="0>7|1" startTime="3.5" endTime="4" startRot="-110 0 0" endRot="-240 0 0" startTrans="0.004 0.980 -1.853" endTrans="0.004 0.294 -3.9" />
            <part node="0>1|3" startTime="0" endTime="2" startRot="0 0 0" endRot="40 0 0"  />
            <part node="0>1|2" startTime="2.5" endTime="4.5" startRot="0 0 0" endRot="70 0 0"  />
			
			<sound template="hydraulicClose01" startTime="0.01" endTime="0.99" volumeScale="2" pitchScale="0.8" />
            <sound template="hydraulicOpen04" startTime="0.01" volumeScale="2.2" pitchScale="1.5" />
            <sound template="clackVar4" startTime="0.99" direction="1" volumeScale="2.3" pitchScale="1.2" />
            <sound template="clackVar4" startTime="0.965" direction="1" volumeScale="2.3" pitchScale="1.2" />
            <sound template="clackVar4" startTime="0.995" direction="1" volumeScale="2.3" pitchScale="1.2" />
            <sound template="clackVar4" startTime="1.2" direction="1" volumeScale="2.3" pitchScale="1.2" />
            <sound template="balerEject" startTime="0.1" volumeScale="2" pitchScale="1.2" />
        </animation>
        <animation name="closeDoor">
            <part node="0>1|2" startTime=".01" endTime="0.6" startRot="60 0 0" endRot="45 0 0"  />
            <part node="0>1|0" startTime=".01" endTime="1.0" startRot="80 0 0" endRot="0 0 0" />
            <part node="0>7|1" startTime=".01" endTime="1.0" startRot="0 0 0" endRot="0 0 0" startTrans=" 0 0 0" endTrans="0 1.47886002 -0.80400002" />
            <part node="0>1|3" startTime=".01" endTime="1.0" startRot="40 0 0" endRot="0 0 0"  />
			<!--<part node="0>1|3|0|0" startTime=".01" endTime="1.1" startRot="60 0 0" endRot="97.27 0 0"  />-->
            <part node="0>1|2" startTime="0.8" endTime="1.05" startRot="45 0 0" endRot="0 0 0"  />
                <!--<part node="0>7|2" startTime="0.0" endTime="0.01" endScale="1.0 0.120 0.120" />-->
                <part node="0>7|1" startTime="0.0" endTime="0.01" endTrans="0 1.47886002 -0.80400002" endRot="0 0 0"/>
           
            <sound template="hydraulicOpen02" startTime="0.01" endTime="1.3" volumeScale="1.7" pitchScale="0.8" />
            <sound template="sheetImp05" startTime="0.98" volumeScale="1"   pitchScale="0.8" />
            <sound template="sheetImp02" startTime="0.99" volumeScale="3"   pitchScale="0.8" />
            <sound template="clackVar5"  startTime="0.01" volumeScale="0.8" pitchScale="1.5" />
            <sound template="metalClose" startTime="1.0" direction="1"  volumeScale="6.4" pitchScale="0.7" />
        </animation>

    </animations>
	<foldable>
       <foldingConfigurations>
           <foldingConfiguration>
               <foldingParts startMoveDirection="1">
                   <foldingPart animationName="unfold" speedScale="1"/>
               </foldingParts>
             </foldingConfiguration>
         </foldingConfigurations>
    </foldable>
    <cylindered>
        <movingTools>
            <movingTool node="0>1|2" playSound="true">
                <dependentPart node="0>1|5"/>
            </movingTool>
            <movingTool node="0>1|3" playSound="true">
                <dependentPart node="0>1|3|0|0"/>
            </movingTool>
			<movingTool node="0>1|0" playSound="true">
                <dependentPart node="0>1|6"/>
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="0>1|5" referencePoint="0>1|2|0" referenceFrame="0>1|2|0" isActiveDirty="true" maxUpdateDistance="50" scaleZ="true">
            </movingPart>
            <movingPart node="0>1|3|0|0" referencePoint="0>1|0|4" referenceFrame="0>1|0|4" isActiveDirty="true" maxUpdateDistance="50" scaleZ="true">
            </movingPart>
			<movingPart node="0>1|6" referencePoint="0>1|0|5" referenceFrame="0>1|0|5" isActiveDirty="true" maxUpdateDistance="50">
				<translatingPart node="0>1|6|0|0"/>
            </movingPart>
        </movingParts>

    </cylindered>

    <fillUnit>
        <fillUnitConfigurations title="$l10n_configuration_silageAdditives">
            <fillUnitConfiguration name="$l10n_configuration_valueNo" price="0">
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="windrow" capacity="4000" showInShop="false">
                        <alarmTriggers>
                            <alarmTrigger minFillLevel="0.92" maxFillLevel="1" needsTurnOn="true">
                                <alarmSound template="rollbeltAlarm" linkNode="0>" />
                            </alarmTrigger>
                        </alarmTriggers>
                    </fillUnit>
					<fillUnit showInShop="false" fillTypes="BALE_TWINE" uiDisplayType="STEP">
                        <exactFillRootNode node="0>1|0|11"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<consumable>
        <consumable2Configurations title="$l10n_configuration_baleTwine" typeName="BALE_TWINE">
            <consumable2Configuration price="450" name="$l10n_consumable_lizardTwine" consumableName="LIZARD_TWINE"/>
            <consumable2Configuration price="0" name="$l10n_configuration_valueEmpty"/>
        </consumable2Configurations>
		
		<type typeName="BALE_TWINE" defaultConsumableName="LIZARD_TWINE" fillUnitIndex="2">
            <slot node="0>0|8|0" isConsumingSlot="true"/>
			<slot node="0>0|8|1" isConsumingSlot="true"/>
            <slot node="0>0|8|2"/>
			<slot node="0>0|8|3"/>
			<slot node="0>0|8|4"/>
			<slot node="0>0|8|5"/>
        </type>
    </consumable>

    <tipOccluder>
        <occlusionArea start="0>6|0" width="0>6|1" height="0>6|2"/>
    </tipOccluder>
	
	<ai>
        <allowTurnBackward value="false"/>
        <agentAttachment jointNode="0>3|0" rotCenterWheelIndices="1 2" width="2.8" height="2.1" length="4" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-1.55" maxZ="1" yOffset="0.4" />
        <bendingNode minX="-0.2" maxX="0.2" minZ="-0.2" maxZ="1.3" yOffset="-0.3" node="0>"/>
    </foliageBending>

    <wearable wearDuration="960" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="270" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
</vehicle>
