<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="augerWagon">
	<annotation>Copyright (C) Kyosho's Modfactory, All Rights Reserved.</annotation>

	<storeData>
        <name>Grimme RUW 4000</name>
        <functions>
        <function>$l10n_function_augerWagon</function>
        </functions>
        <image>storeGrimmeRUW.dds</image>
        <price>10</price>
        <dailyUpkeep>35</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>GRIMME</brand>	
        <category>augerWagons</category>
        <vertexBufferMemoryUsage>1371272</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>212388</indexBufferMemoryUsage>
        <textureMemoryUsage>10486152</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
    <typeDesc>$l10n_typeDesc_augerWagon</typeDesc>
    <filename>Grimme_RUW_4000.i3d</filename>
    <size width="4" length="11.5" lengthOffset="0" /> 
	
    <wheels autoRotateBackSpeed="2.0">
        <wheel restLoad="1.7" repr="0>3" radius="0.74" initialCompression="8" suspTravel="0.20" spring="90" damper="70" mass="0.8" maxLatStiffness="72" maxLatStiffnessLoad="3" steeringAxleScale="0.3" steeringAxleRotMax="15" steeringAxleRotMin="-15" hasTyreTracks="true" hasParticles="true" tyreTrackAtlasIndex="4" tireType="street"/>
        <wheel restLoad="1.7" repr="0>4" radius="0.74" initialCompression="8" suspTravel="0.20" spring="90" damper="70" mass="0.8" maxLatStiffness="72" maxLatStiffnessLoad="3" steeringAxleScale="0.3" steeringAxleRotMax="15" steeringAxleRotMin="-15" hasTyreTracks="true" hasParticles="true" tyreTrackAtlasIndex="4" tireType="street"/>
        <wheel restLoad="1.7" repr="0>27" radius="0.74" initialCompression="8" suspTravel="0.20" spring="90" damper="70" mass="0.8" maxLatStiffness="72" maxLatStiffnessLoad="3" hasTyreTracks="true" hasParticles="true" tyreTrackAtlasIndex="4" tireType="street"/>
        <wheel restLoad="1.7" repr="0>28" radius="0.74" initialCompression="8" suspTravel="0.20" spring="90" damper="70" mass="0.8" maxLatStiffness="72" maxLatStiffnessLoad="3" hasTyreTracks="true" hasParticles="true" tyreTrackAtlasIndex="4" tireType="street"/>
        <wheel restLoad="1.7" repr="0>25" radius="0.74" initialCompression="8" suspTravel="0.20" spring="90" damper="70" mass="0.8" maxLatStiffness="72" maxLatStiffnessLoad="3" steeringAxleScale="-0.3" steeringAxleRotMax="10" steeringAxleRotMin="-10" hasTyreTracks="true" hasParticles="true" tyreTrackAtlasIndex="4" tireType="street"/>
        <wheel restLoad="1.7" repr="0>26" radius="0.74" initialCompression="8" suspTravel="0.20" spring="90" damper="670" mass="0.8" maxLatStiffness="72" maxLatStiffnessLoad="3" steeringAxleScale="-0.3" steeringAxleRotMax="10" steeringAxleRotMin="-10" hasTyreTracks="true" hasParticles="true" tyreTrackAtlasIndex="4" tireType="street"/>
   </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="0>25" filename="twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="0>26" filename="twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="0>3" filename="twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="0>4" filename="twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="0>27" filename="twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="0>28" filename="twinRadial_710_50R26_5.i3d" />
    </dynamicallyLoadedParts>	

    <brakeForce>1.1</brakeForce>		
	<powerConsumer ptoRpm="540" neededPtoPower="20"/>
    <steeringAxleAngleScale startSpeed="5" endSpeed="70" />	

	<movingPartsPTO linkNodeIndex="0>0|6|0|0|0|0" linkNodePos="0 0 0.12" detachLinkNodeIndex="0>0|6|1" />

	<turnedOnRotationNodes>	
		<!-- Gelenkwelle -->
		<turnedOnRotationNode index="0>0|6|0|0|0|0|0"	type="baler" rotSpeed="1100" 	rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="5" />
		<turnedOnRotationNode index="0>0|6|0|1" 		type="baler" rotSpeed="1100" 	rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="5" />
    </turnedOnRotationNodes>   

    <inputAttacherJoints>
        <inputAttacherJoint index="0>0|1" jointType="trailerLow" ptoInputNode="0>0|6|1"/>
    </inputAttacherJoints>

	<lights>
        <low>
            <light                       decoration="0>8|0" lightTypes="0 3" />
        </low>
        <high>
            <light realLight="0>8|0|4" decoration="0>8|0" lightTypes="0 3" />
        </high>
    </lights>
	
    <brakeLights>
        <brakeLight realLight="0>8|0|4" decoration="0>8|1" />
	</brakeLights>
		
    <turnLights>
        <turnLightLeft realLight="0>8|3|2" decoration="0>8|3" />
        <turnLightRight realLight="0>8|4|2" decoration="0>8|4" />
    </turnLights>
	
	<beaconLights>
        <beaconLight index="0>34|0|0" speed="0.015" filename="$data/shared/beaconLights/beaconLight03.i3d"/>
    </beaconLights>
    
	<fillUnits>
    <fillUnit unit="$l10n_unit_literShort" fillTypes="sugarBeet potato" capacity="40000" />
	</fillUnits>
    
	<fillVolumes>  
	<volumes>
       <volume index="0>31|0|7" maxDelta="0.04" />
    </volumes>
	 
	<dischargeInfos>
            <dischargeInfo>
            <node index="0>31|0|3|0|1" width="1" length="1" />
			</dischargeInfo>
    </dischargeInfos>
   
    <unloadInfos>
            <unloadInfo>
			 <node index="0>31|0|9" width="0.5" length="2" />
			 </unloadInfo>
        </unloadInfos>
    </fillVolumes>
	
    <fillVolumeLoadInfo index="0>31|0|8" width="1" length="1" />   
   

    <fillRootNode index="0>" />
     <fillAutoAimTargetNode index="0>31|2" startZ="1.2" endZ="-3.4" invert="false" fillUnitIndex="1" startPercentage="25"/>
	<fillMassNode index="0>" />
    <exactFillRootNode index="0>31|1" />
    <allowTipDischarge value="true" />

	<overloading capacity="800">
        <trailerTriggers>
            <trailerTrigger index="0>31|0|12" />
        </trailerTriggers>
    </overloading>
	 
    <pipe numStates="2" unloadingStates="2" raycastNodeIndex="0>31|0|3|0|7" raycastDistance="6" foldMinState="1" foldMaxState="1" foldMinLimit="0" foldMaxLimit="0" foldMinTime="0" foldMaxTime="0" delay="2.1" effectExtraDistance="2.2" effectExtraDistanceOnTrailer="-0.5" dischargeInfoIndex="1">
        <node index="0>31|0|3" rotationSpeeds="0 0 8">
            <state1 rotation="0 0 90"/>
            <state2 rotation="0 0 38"/>
        </node>
       
	   <node index="0>31|0|3|0" rotationSpeeds="0 0 8">
            <state1 rotation="0 0 90"/>
            <state2 rotation="0 0 0"/>
        </node>
   </pipe>

    <pipeScrollers>
        <pipeScroller type="sugarBeet" index="0>31|0|3|0|0" scrollSpeed="-0.35" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="1" turnOffFadeTime="1"/> <!-- UVPlaySpeed -->
        <pipeScroller type="sugarBeet" index="0>31|0|3|2" scrollSpeed="-0.35" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="1" turnOffFadeTime="1"/>		
        <pipeScroller type="sugarBeet" index="0>31|0|6" scrollSpeed="-0.35" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="1" turnOffFadeTime="1"/>		
        <pipeScroller type="sugarBeet" index="0>31|0|10" scrollSpeed="-0.35" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="1" turnOffFadeTime="1"/>		
        <pipeScroller type="sugarBeet" index="0>31|0|3|0|2" scrollSpeed="-0.35" scrollLength="10" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="true" turnOnFadeTime="1" turnOffFadeTime="1"/>		
	    <pipeScroller type="sugarBeet" index="0>31|0|3|1" scrollSpeed="-0.35" scrollLength="10" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="true" turnOnFadeTime="1" turnOffFadeTime="1"/>		
	    <pipeScroller type="potato" index="0>31|0|3|0|0" scrollSpeed="-0.35" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="1" turnOffFadeTime="1"/> <!-- UVPlaySpeed -->
        <pipeScroller type="potato" index="0>31|0|3|2" scrollSpeed="-0.35" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="1" turnOffFadeTime="1"/>		
        <pipeScroller type="potato" index="0>31|0|6" scrollSpeed="-0.35" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="1" turnOffFadeTime="1"/>		
        <pipeScroller type="potato" index="0>31|0|10" scrollSpeed="-0.35" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="1" turnOffFadeTime="1"/>		
     </pipeScrollers>

    <!--pipeParticleSystems>
        <pipeParticleSystem type="sugarBeet" node="0>31|0|3|5" rotation="0 0 0" file="PS/unloadingParticleSystem2.i3d" />
        <pipeParticleSystem type="sugarBeet" node="0>31|03|5" rotation="0 0 0" file="PS/unloadingParticleSystem3.i3d" />
		<pipeParticleSystem type="potato" node="0>31|0|3|5" rotation="0 0 0" file="PS/unloadingParticleSystem.i3d" />
		<pipeParticleSystem type="potato" node="0>31|0|3|5" rotation="0 0 0" file="PS/unloadingParticleSystem1.i3d" />
    </pipeParticleSystems-->
   
    <pipeParticleSystems>
        <emitterShape node="0>31|0|3|7|0" particleType="UNLOADING" emitCountScale="10" delay="1.5" lifespan="0.11"/>
    </pipeParticleSystems>
    
	<fillSound file="$data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />
	<cylinderedHydraulicSound file="$data/sounds/hydraulicUp.wav" pitchOffset="0.75" volume="0.75" />

    <foldingParts startMoveDirection="1" turnOnFoldMinLimit="0" turnOnFoldMaxLimit="0.02" >
        <foldingPart animationName="folding" speedScale="1" />
    </foldingParts>  		   
	
    <animations>		
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>0|2" startTime="0" duration="0.5" startTrans="0.16991 0 2.0101" endTrans="0.16991 -0.48 2.0101" />
        </animation>	
        <animation name="folding">
            <!-- pipe end -->
            <part node="0>31|0|3|0" startTime="0" duration="4.5" startRot="0 0 90" endRot="0 0 0"/>
        </animation>			
    </animations>

    <movingParts>
        <!-- hydraulictankPart1 -->
        <movingPart index="0>31|0|4" referencePoint="0>31|0|3|0|5" referenceFrame="0>31|0|3|0|5" >
             <translatingPart index="0>31|0|4|0" />
        </movingPart>
        <movingPart index="0>31|0|5" referencePoint="0>31|0|3|0|4" referenceFrame="0>31|0|3|0|4" >
             <translatingPart index="0>31|0|5|0" />
        </movingPart>
        <!-- hydraulictankPart2 -->
        <movingPart index="0>31|0|3|3" referencePoint="0>31|0|3|0|3" referenceFrame="0>31|0|3|0|3" >
             <translatingPart index="0>31|0|3|3|0" />
        </movingPart>
        <movingPart index="0>31|0|3|6" referencePoint="0>31|0|3|0|6" referenceFrame="0>31|0|3|0|6" >
             <translatingPart index="0>31|0|3|6|0" />
        </movingPart>
		<!-- Gelenkwelle -->
        <movingPart index="0>0|6|0|0" referencePoint="0>0|6|0|0|0|0" referenceFrame="0>0|6|0|0|0|0" isActiveDirty="true"  >
            <translatingPart index="0>0|6|0|0|0" />
        </movingPart>
		<!-- attachable hose -->
        <movingPart index="0>35|0|0" referenceFrame="0>" moveToReferenceFrame="true" doDirectionAlignment="true" playSound="true" isActiveDirty="true" />
		<movingPart index="0>35|1|0" referenceFrame="0>" moveToReferenceFrame="true" doDirectionAlignment="true" playSound="true" isActiveDirty="true" />
		<movingPart index="0>35|2|0" referenceFrame="0>" moveToReferenceFrame="true" doDirectionAlignment="true" playSound="true" isActiveDirty="true" />
		<movingPart index="0>35|3|0" referenceFrame="0>" moveToReferenceFrame="true" doDirectionAlignment="true" playSound="true" isActiveDirty="true" />
		<movingPart index="0>35|4|0" referenceFrame="0>" moveToReferenceFrame="true" doDirectionAlignment="true" playSound="true" isActiveDirty="true" />
    </movingParts>
	
    <support animationName="moveSupport" />	
	
    <mouseControls>
        <mouseControl iconFilename="$dataS2/menu/moveControls/drawbar_rotX.png"  axis="AXIS_PIPE" />
    </mouseControls>	
		
	<movingTools>
		<movingTool index="0>0"  anchorActor="0" rotSpeed="5" rotAcceleration="80" rotMax="7" rotMin="10" axis="AXIS_PIPE" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="false" speedFactor="0.3">
        <!--<dependentPart index="0>0|1" />-->
        </movingTool> 	
        <!-- hydraulictankPart1 -->
        <movingTool index="0>31|0|3" freezingPipeStates="0 1" foldMinLimit="0" foldMaxLimit="0" playSound="true">
           <controls axis="AXIS_PIPE" invertAxis="false" mouseSpeedFactor="1" iconFilename="$dataS2/menu/moveControls/pipe_end.png"/>
		   <rotation rotSpeed="10" rotAcceleration="125" rotMax="45" rotMin="-5" rotationAxis="3"/>
		   <dependentPart index="0>31|0|4" />
            <dependentPart index="0>31|0|5" />
        </movingTool>
        <!-- hydraulictankPart2 -->
        <movingTool index="0>31|0|3|0" freezingPipeStates="0 1" foldMinLimit="0" foldMaxLimit="0" playSound="true">
           <controls axis="AXIS_PIPE2" invertAxis="true" mouseSpeedFactor="1" iconFilename="$dataS2/menu/moveControls/pipe_end.png"/>
		   <dependentPart index="0>31|0|3|3" />
            <dependentPart index="0>31|0|3|6" />
        </movingTool>	
    </movingTools>

	<hydraulic>
		<cylinder girl="0>22|0"   boy="0>22|0|0"   ref="0>22|0|0|0"   target="0>0|4" />   <!-- hydraulic 1 -->				
	</hydraulic>		
	
    <components count="1">
        <component1 centerOfMass="0.00 0.67 1.67" solverIterationCount="4" />
    </components>
	
    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="0>20|0"     filename="$data/shared/vehicleParts/wheelChock02.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>20|1"     filename="$data/shared/vehicleParts/wheelChock02.i3d" />
    </dynamicallyLoadedParts>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0">
        <attacherJoint position="0.25 0.5" rotation="0" invertX="false" />
    </schemaOverlay>
	 
</vehicle>
