<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="strawBlower" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Tomahawk C120</name>
        <specs>
            <neededPower>180</neededPower>
            <capacity unitTextOverride="$l10n_unit_bale">2</capacity>
            <fillTypes>straw maize barley wheat</fillTypes>
        </specs>
        <functions>
            <function>$l10n_function_feederBale</function>
        </functions>
        <image>store_tomahawkC120.dds</image>
        <price>75000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>TEAGLE</brand>
        <category>strawBlowers belts</category>
        <shopHeight>3</shopHeight>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>3027968</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>1154304</indexBufferMemoryUsage>
        <textureMemoryUsage>3211264</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_strawBlower</typeDesc>
        <filename>C120.i3d</filename>
        <size width="2.8" length="5.9" lengthOffset="1.5"/>
        <components>
            <component centerOfMass="0 0.5 -1.1" solverIterationCount="10" mass="5500" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL_TRAILED" />
    </base>
	
	<wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="CONTINENTAL">
                <wheels>
                    <wheel filename="wheels/385_55R22_5.xml" configId="C120" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0"  restLoad="1.2" repr="0>0|0|0"  forcePointRatio="0.3" initialCompression="10" suspTravel="0.12" spring="85" damper="75" frictionScale="1.6" />
                    </wheel>
                    <wheel filename="wheels/385_55R22_5.xml" configId="C120" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0"  restLoad="1.2" repr="0>0|0|1"  forcePointRatio="0.3" initialCompression="10" suspTravel="0.12" spring="85" damper="75" frictionScale="1.6" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
		
        <rimColor>0.13 0.13 0.135</rimColor>

        <hubMaterial materialTemplateName="metalPaintedBlack" />
    </wheels>

    <powerConsumer ptoRpm="800" neededMinPtoPower="30" neededMaxPtoPower="30"/>

    <attachable>
        <inputAttacherJointConfigurations>
            <inputAttacherJointConfiguration name="zaczep" displayBrand="TEAGLE" price="0">
				<inputAttacherJoint node="0>0|1|0" jointType="trailerLow" attacherHeight="0.55" />
            </inputAttacherJointConfiguration>
        </inputAttacherJointConfigurations>
		<brakeForce force="0.55"/><sounds>
            <active file="$data/sounds/tools/trailer/trailerRattle_02.wav" innerRadius="10" outerRadius="50" volumeScale="3.5" isLocalSound="true" pitchScale="1.2">
                <volume indoor="0.7" outdoor="0.9" >
                    <modifier type="WHEEL_SUSPENSION" value="-0.08" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.06" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.04" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.03" modifiedValue="0.15"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.02" modifiedValue="0.1"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.01" modifiedValue="0.05"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.00" modifiedValue="0.0"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.01" modifiedValue="0.05"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.02" modifiedValue="0.1"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.03" modifiedValue="0.15"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.04" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.06" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.08" modifiedValue="0.2"/>

                    <modifier type="SPEED" value="0.0" modifiedValue="0.0"/>
                    <modifier type="SPEED" value="2.0" modifiedValue="1.0"/>
                    <modifier type="SPEED" value="40.0" modifiedValue="1.0"/>
                </volume>
                <lowpassCutoffFrequency indoor="250" outdoor="20000" />
                <lowpassGain indoor="0.5" outdoor="1" />
            </active>
        </sounds>
    </attachable>

	<powerTakeOffs>
		<input inputAttacherJointIndices="1" inputNode="0>0|1|1" aboveAttacher="true" detachNode="0>0|1|2"/>
        <local startNode="0>0|1|3" endNode="0>0|1|4"/> <!--color="SHARED_BLACK1" decalColor="WALTERSCHEID_YELLOW1"-->
	</powerTakeOffs>
	
    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="0>0|1|6|0"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="0>0|1|6|1"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="0>0|1|6|2"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="0>0|1|6|3"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="0>0|1|5|1"  length="2.25" diameter="0.016" straighteningFactor="1">
           <objectChange node="0>0|1|6" visibilityActive="false" visibilityInactive="true"/>
           <objectChange node="0>0|6|1" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>0|1|5|2" length="2.45" diameter="0.016" straighteningFactor="1">
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="0>0|1|5|3"  length="2.25" diameter="0.016" straighteningFactor="1">
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>0|1|5|4" length="2.45" diameter="0.016" straighteningFactor="1">
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="0>0|1|5|0|0|0" length="1.7" diameter="0.012" straighteningFactor="1">
           <objectChange node="0>0|1|5|0|0|1" rotationActive="0 0 0" otationInactive="-90 0 0"/>
        </hose>
    </connectionHoses>

    <lights>
        <sharedLight linkNode="0>0|2|0|1"         filename="$data/shared/assets/lights/lizard/rearLight58_left.xml" />
        <sharedLight linkNode="0>0|2|0|2"         filename="$data/shared/assets/lights/lizard/rearLight58_right.xml" />

        <realLights>
            <low>
                <turnLightLeft node="0>0|2|2|0" />
                <turnLightRight node="0>0|2|2|1" />
                <brakeLight node="0>0|2|1|0" />
            </low>
            <high>
                <light node="0>0|2|9|0" lightTypes="0" />
                <light node="0>0|2|1|1" lightTypes="0" />
                <turnLightLeft node="0>0|2|2|0" />
                <turnLightRight node="0>0|2|2|1" />
                <brakeLight node="0>0|2|1|0" />
            </high>
        </realLights>

        <staticLightCompounds>
            <staticLightCompound>
                <node node="0>0|2|0|0|0|0" intensity="3"/>
            </staticLightCompound>
        </staticLightCompounds>
    </lights>

    <licensePlates>
        <licensePlate node="0>0|2|9" position="BACK" preferedType="SQUARISH" placementArea="0.08 0.27 0.2 0.27"/>
    </licensePlates>
	
    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>					   <!--loadMovingToolStatesMaxLimit="-1" loadMovingToolStatesMinLimit="-1" -->
                  <foldingParts startMoveDirection="1" turnOnFoldMinLimit="0.0" turnOnFoldMaxLimit="0.01">
                      <foldingPart animationName="tasma" speedScale="0.9"/>
                  </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
	
    <animations>
        <animation name="tasma">
            <part node="0>0|5|0" startTime="0.0" endTime="5.0" startRot="90 0 0" endRot="118 0 0" tangentType="spline"/>
            <part node="0>0|5|0|0" startTime="0.0" endTime="5.0" startRot="0 0 0" endRot="97.5 0 0" tangentType="spline"/>
            <part node="0>0|5|4" startTime="0.0" endTime="5.0" endRot="0 0 0" tangentType="spline"/>
            <part node="0>0|5|0|0|3" startTime="0.0" endTime="0.001" visibility="true"/>
            <part node="0>0|5|0|0|3" startTime="0.001" endTime="5.0" visibility="false"/>
            <part node="0>0|5|0|0|4" startTime="0.0" endTime="0.0001" startTrans="-0.414 -1.951 -2.368" endTrans="0 5 -9" />
			
            <sound template="clackVar5" startTime="4.99" direction="1"  volumeScale="2.1" pitchScale="1.5" linkNode="0>0|5|0"/>
            <sound template="metalClose" startTime="0.01" direction="-1" volumeScale="2.8" pitchScale="1.1" linkNode="0>0|5|0|0"/>
            <sound template="metalOpen" startTime="4.99" direction="1"  volumeScale="3.0" pitchScale="1.2" linkNode="0>0|5|0"/>
            <sound template="clackVar5" startTime="0.01" direction="-1" volumeScale="1.8" pitchScale="1.8" linkNode="0>0|5|0|0"/>
            <sound template="hydraulicOpen02" startTime="0.01"  endTime="4.99"  volumeScale="3.4" pitchScale="0.8" linkNode="0>0|5|0"/>
            <sound template="hydraulicOpen04"  startTime="4.99"  direction="-1"  volumeScale="3.2" pitchScale="1.4" linkNode="0>0|5|0"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="0>0|5|0" foldMinLimit="0.0" foldMaxLimit="0.1" playSound="true">
                <controls axis="AXIS_DOOR" invertAxis="true" mouseSpeedFactor="0.15" iconName="PIPE_ROTATE_X" />
                <rotation rotSpeed="110" rotAcceleration="250" rotMax="100" rotMin="54" startRot="90" rotationAxis="1" />
                <dependentPart node="0>0|5|1" />
                <dependentPart node="0>0|5|0|0|4" />
            </movingTool>
			
            <movingTool node="0>0|5|0|0">
                <dependentPart node="0>0|5|0|1" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="0>0|5|1" referencePoint="0>0|5|0|2" referenceFrame="0>0|5|0|2">
                <translatingPart node="0>0|5|1|0" />
            </movingPart>
            <movingPart node="0>0|5|0|1" referencePoint="0>0|5|0|0|1" referenceFrame="0>0|5|0|0|1">
                <translatingPart node="0>0|5|0|1|0" />
            </movingPart>
            <movingPart node="0>0|5|0|0|4" referenceFrame="0>0|10" alignToWorldY="true" isActiveDirty="true" maxUpdateDistance="100"/>
        </movingParts>

        <sounds>
            <actionSound template="hydraulicOpen02" 	pitchScale="1.2" volumeScale="3.2" linkNode="0>0|5|0" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG" nodes="0>0|5|0" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicOpen04"		pitchScale="1.8" volumeScale="3.5" linkNode="0>0|5|0" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG" nodes="0>0|5|0" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="metalOpen"           pitchScale="0.6" volumeScale="2.8" linkNode="0>0|5|0" actionNames="TOOL_MOVE_END_POS"         		nodes="0>0|5|0"/>
            <actionSound template="metalClose"          pitchScale="0.7" volumeScale="3"   linkNode="0>0|5|0" actionNames="TOOL_MOVE_END_NEG"         		nodes="0>0|5|0"/>
            <actionSound template="vibratingImp"        pitchScale="1.2" volumeScale="2.2" linkNode="0>0|5|0" actionNames="TOOL_MOVE_END_POS_LIMIT"     nodes="0>0|5|0"/>
            <actionSound template="vibratingImp"        pitchScale="1.7" volumeScale="2"   linkNode="0>0|5|0" actionNames="TOOL_MOVE_END_NEG_LIMIT"     nodes="0>0|5|0"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" foldMaxLimit="0.01" foldMinLimit="0" fillTypes="STRAW MAIZE BARLEY WHEAT OAT SOYBEAN" capacity="5000">
                        <exactFillRootNode node="0>0|5|4|1" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|5|4|0" maxDelta="0.5" maxAllowedHeapAngle="25" fillUnitIndex="1"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
		
        <unloadInfos>
            <unloadInfo>
                <node node="0>0|5|4|2" width="2" length="2" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>
	
    <turnOnVehicle>
        <sounds>
            <work template="mixerHeaderLoop" linkNode="tomahawkC120_main_component1" />
            <start template="mixerHeaderStart" linkNode="tomahawkC120_main_component1" />
            <stop template="mixerHeaderStop" linkNode="tomahawkC120_main_component1" />
        </sounds>
    </turnOnVehicle>
	
    <dischargeable requiresTipOcclusionArea="false" turnOffIfNotAllowed="true" foldMaxLimit="0.01" foldMinLimit="0">
        <dischargeNode node="0>0|5|0|0|4|0" emptySpeed="185" fillUnitIndex="1" foldMaxLimit="0.01" foldMinLimit="0" canStartDischargeAutomatically="false" stopDischargeOnEmpty="false">
		<fillType converterName="C120_CALIBRATOR"/>	
            <info width="0.4" length="0.4" />
            <effects foldMaxLimit="0.01" foldMinLimit="0">
				<effectNode effectClass="MorphPositionEffect" effectNode="0>0|4|2|0"  materialType="belt" delay="0"   fadeTime="0.4" speed="0.7" scrollLength="1"  scrollSpeed="0.8" minFade="0.02" />
				<effectNode effectClass="MorphPositionEffect" effectNode="0>0|5|0|0|3|0|0" materialType="belt" delay="0.6" fadeTime="0.8"   speed="0.8" scrollLength="9" scrollSpeed="0.9" minFade="0.04" />
				
                <effectNode effectClass="PipeEffect" effectNode="0>0|5|0|0|3|1|0" materialType="pipe"  delay="1.05" maxBending="1" positionUpdateNodes="0>0|5|0|0|3|1|1" shapeScaleSpread="1 1 0 0" />
                <effectNode                          effectNode="0>0|5|0|0|3|1|1" materialType="unloadingSmoke" delay="1.15"  alignToWorldY="true"/>
				
                <effectNode effectClass="ParticleEffect" effectNode="0>0|4|0" particleType="SMOKE" materialType="smokeParticle" emitCountScale="0.5" extraDistance="5"/>
                <effectNode effectClass="ParticleEffect" effectNode="0>0|4|1" particleType="SMOKE" materialType="smokeParticle" emitCountScale="0.5" extraDistance="5"/>
            </effects>		
			<animationNodes>
				<animationNode node="0>0|5|2" rotSpeed="45" rotAxis="2" turnOnFadeTime="0.5" turnOffFadeTime="0.5" shaderComponentScale="0 0.6 0 0" shaderParameterName="offsetUV" />
				<animationNode node="0>0|5|10" rotSpeed="45" rotAxis="2" turnOnFadeTime="0.5" turnOffFadeTime="0.5" shaderComponentScale="0 0.6 0 0" shaderParameterName="offsetUV" />
				<animationNode node="0>1|6" rotSpeed="45" rotAxis="2" turnOnFadeTime="0.8" turnOffFadeTime="0.8" shaderComponentScale="0 0.6 0 0" shaderParameterName="offsetUV" />
				<animationNode node="0>0|5|0|3" rotAxis="1" rotSpeed="-400" turnOnFadeTime="0.8" turnOffFadeTime="0.8"/>
				<animationNode node="0>0|5|0|0|2" rotAxis="1" rotSpeed="-400" turnOnFadeTime="0.8" turnOffFadeTime="0.8"/>
				<animationNode node="0>0|5|3" rotSpeed="720"  rotAxis="3" turnOnFadeTime="4" turnOffFadeTime="6"/>
				<animationNode node="0>0|5|9" rotSpeed="720"  rotAxis="3" turnOnFadeTime="4" turnOffFadeTime="6"/>
				
				<!--turnOnVehicle-->
				<animationNode node="0>0|5|6" rotSpeed="85"  rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="2"/>
				<animationNode node="0>0|5|7" rotSpeed="-85"  rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="2"/>
				<animationNode node="0>0|5|8" rotSpeed="85"  rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="2"/>
				<animationNode node="0>0|5|4" rotSpeed="-20"  rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="2"/>
				<animationNode node="0>0|5|5" rotSpeed="125" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="2" shaderComponentScale="-0.44 0 0 0" shaderParameterName="offsetUV" />
			</animationNodes>
        </dischargeNode>
        <sounds>
            <belt template="rollbeltLoop" linkNode="0>0|5|0" />
            <start template="strawblowerStart" linkNode="0>0|5|0" />
            <stop template="strawblowerStop" linkNode="0>0|5|0" />
            <work template="strawblowerWork" linkNode="0>0|5|0" />
        </sounds>
    </dischargeable>
	
	<strawBlower> 
        <baleTrigger node="0>0|3|0" />
        <sounds>
            <start template="strawblowerStart" linkNode="0>0|5|0" />
            <stop template="strawblowerStop" linkNode="0>0|5|0" />
            <work template="strawblowerWork" linkNode="0>0|5|0" />
        </sounds>
    </strawBlower>
	
    <ai>
        <agentAttachment width="1.8" height="1.5" length="1.5" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.25" maxX="1.25" minZ="-1.25" maxZ="1.55" yOffset="0.35" />
    </foliageBending>

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

    <i3dMappings>
        <i3dMapping id="tomahawkC120_main_component1" node="0>" />
    </i3dMappings>
</vehicle>
