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

    <storeData>
        <name>
            <en>ZHZE-4 sunflower</en> 
            <de>ZHZE-4 sunflower</de> 			
            <ru>ЖЗЕ-4 подсолнух</ru>		
		</name>	
        <specs>
            <workingWidth>4.0</workingWidth>
            <combination>SK-5 Niva</combination>
        </specs>
        <functions>
            <function>$l10n_function_cutter</function>
        </functions>
        <image>store/store_zhze4sunflower.png</image>
        <price>15100</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ROSTSELMASH</brand>
        <category>cornHeaders</category>
        <vertexBufferMemoryUsage>1110272</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>153210</indexBufferMemoryUsage>
        <textureMemoryUsage>12059104</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cutter</typeDesc>
        <filename>zhze4sunflower.i3d</filename>
        <size width="4.4" length="2.1"/>
        <speedLimit value="10"/>
        <components>
            <component centerOfMass="0 0.5 0" mass="1350" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="cutter">
                <distanceToGround lower="0.92" upper="1.12"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>

    <powerConsumer ptoRpm="540" neededMaxPtoPower="25"/>

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" threshold="0.4" />
    </groundReferenceNodes>
	
    <workAreas>
        <workArea type="cutter" functionName="processCutterArea" >
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <chopperArea index="2" />			
        </workArea>
        <workArea type="auxiliary" >
            <area startNode="workAreaStrawStart" widthNode="workAreaStrawWidth" heightNode="workAreaStrawHeight" />
        </workArea>		
    </workAreas>

    <cylindered>
        <movingTools>
            <movingTool node="reelArm" playSound="true">
                <controls axis="AXIS_CUTTER_REEL2" invertAxis="true" mouseSpeedFactor="0.9" iconName="REEL_TRANSLATE_Y"/>
                <rotation rotSpeed="10" rotAcceleration="50" rotMax="8" rotMin="-10" startRot="0"/>
                <dependentMovingTool node="reelArmHydraulic" />
            </movingTool>
            <movingTool node="reelMover" playSound="true" >
                <controls axis="AXIS_CUTTER_REEL" invertAxis="false" mouseSpeedFactor="0.9" iconName="REEL_TRANSLATE_X" />
                <translation transSpeed="0.2" transAcceleration="20" transMax="0" transMin="-0.3" translationAxis="3" startTrans="0"/>
                <dependentPart node="upperDraft" />
            </movingTool>
            <movingTool node="bladesRefRot">
                <dependentPart node="bladesRot"/>
                <dependentPart node="bladesDraft1"/>
            </movingTool>		
        </movingTools>

        <movingParts>
            <movingPart node="reelArmHydraulic" referencePoint="reelArmHydraulicRef" referenceFrame="reelArmHydraulicRefFrame" isActiveDirty="true">
                <translatingPart node="reelArmHydraulicPunch"/>
            </movingPart>
			
            <movingPart node="upperDraft" referencePoint="upperDraftShaftRef" localReferencePoint="upperDraftShaft" referenceFrame="zhze4_main_component1">
                <dependentPart node="upperDraftShaft" />
            </movingPart>
			
            <movingPart node="upperDraftShaft" referencePoint="upperDraftShaftRef" referenceFrame="zhze4_main_component1"/>
			
            <movingPart node="bladesRot" referencePoint="bladesRef" referenceFrame="zhze4_main_component1" limitedAxis="3">
                <translatingPart node="blades"/>
            </movingPart>	
			
            <movingPart node="bladesDraft1" referencePoint="bladesDraftRef" referenceFrame="bladesDraft1"/>	
			
            <movingPart node="bladesDraft2" referencePoint="draftBladesRef" referenceFrame="blades" isActiveDirty="true"/>	
        </movingParts>

        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND"/>
        </sounds>
    </cylindered>

    <cutter fruitTypes="sunflower">
        <testAreas>
            <testArea startNode="testAreaStart1" widthNode="testAreaWidth1" heightNode="testAreaHeight1"/>
            <testArea startNode="testAreaStart2" widthNode="testAreaWidth2" heightNode="testAreaHeight2"/>
            <testArea startNode="testAreaStart3" widthNode="testAreaWidth3" heightNode="testAreaHeight3"/>
            <testArea startNode="testAreaStart4" widthNode="testAreaWidth4" heightNode="testAreaHeight4"/>
        </testAreas>

        <effect>
            <effectNode linkNode="effectCenter" inverted="true" speedScale="0.0018" effectType="CENTER" changeSpeedScale="0.01"/>
            <effectNode linkNode="effectLeft" inverted="true" speedScale="0.0013" lengthAndRadius="0.8 1 1 0.6" effectType="LEFT" useInterpolation="true" minOffset="1.5"/>
            <effectNode linkNode="effectRight" inverted="true" speedScale="0.0013" lengthAndRadius="0.8 1 1 0.6" effectType="RIGHT" useInterpolation="true" minOffset="1.5" useMaxValue="true"/>
        </effect>

        <fillEffect>
            <effectNode effectClass="ParticleEffect" effectNode="effectParticles" particleType="CUTTER_CHOPPER" />		
            <effectNode effectClass="ParticleEffect" effectNode="smokeEmitter" particleType="SMOKE" emitCountScale="0.1" worldSpace="false" useCuttingWidth="false"/>
        </fillEffect>

        <animationNodes>
            <animationNode node="mainDrum"           rotSpeed="800" rotAxis="1" turnOnFadeTime="4" turnOffFadeTime="3"/>
            <animationNode node="mainShaft"          rotSpeed="1600" rotAxis="1" turnOnFadeTime="4" turnOffFadeTime="3"/>
            <animationNode node="rotatingPart01"     rotSpeed="-1600" rotAxis="1" turnOnFadeTime="4" turnOffFadeTime="3"/>
            <animationNode node="rotatingPart02"     rotSpeed="800" rotAxis="1" turnOnFadeTime="4" turnOffFadeTime="3"/>
            <animationNode node="rotatingPart04"     rotSpeed="550" rotAxis="1" turnOnFadeTime="4" turnOffFadeTime="3"/>
            <animationNode node="rotatingPart03"     rotSpeed="600" rotAxis="1" turnOnFadeTime="4" turnOffFadeTime="3"/>
            <animationNode node="reel"               rotSpeed="250" rotAxis="1" turnOnFadeTime="4" turnOffFadeTime="3"/>
            <animationNode node="bladesRefRot"       rotSpeed="-1600" rotAxis="2" turnOnFadeTime="4" turnOffFadeTime="3"/>
            <animationNode node="bladesDraftRefRot"  rotSpeed="1600" rotAxis="2" turnOnFadeTime="4" turnOffFadeTime="3"/>
			
            <animationNode class="ScrollingAnimation" node="chain01" scrollSpeed="3" turnOnFadeTime="4" turnOffFadeTime="3"/>			
            <animationNode class="ScrollingAnimation" node="chain02" scrollSpeed="2" turnOnFadeTime="4" turnOffFadeTime="3"/>			
            <animationNode class="ScrollingAnimation" node="chain03" scrollSpeed="2" turnOnFadeTime="4" turnOffFadeTime="3"/>			
            <animationNode class="ScrollingAnimation" node="chain04" scrollSpeed="2" turnOnFadeTime="4" turnOffFadeTime="3"/>			
        </animationNodes>
    </cutter>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="ptoInputNode" aboveAttacher="true" detachNode="ptoDetachNode" ptoName="LEFT_PTO" filename="powerTakeOffs/pto_zhze4.xml"/>
    </powerTakeOffs>

    <turnOnVehicle turnedOnByAttacherVehicle="true"/>

    <dynamicMount forceLimitScale="1"/>

    <ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack"/>
        <collisionTrigger node="aiCollisionTrigger"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-2.2" maxX="2.2" minZ="-0.75" maxZ="0.65" yOffset="0.075" />
    </foliageBending>

    <baseMaterial>
        <material name="zhze4_mat" baseNode="zhze4_vis">
            <shaderParameter name="colorMat0" value="0.35 0.031 0.025 6"/>
            <shaderParameter name="colorMat2" value="0.191 0.191 0.191 6"/>
            <shaderParameter name="colorMat3" value="0.035 0.035 0.035 6"/>			
        </material>	
        <material name="zhze4Module_mat" baseNode="sunflowerModule">
            <shaderParameter name="colorMat0" value="0.35 0.031 0.025 6"/>
            <shaderParameter name="colorMat2" value="0.191 0.191 0.191 6"/>		
        </material>	
        <material name="grid_mat" baseNode="details_gridSunflower">
            <shaderParameter name="colorMat0" value="0.35 0.031 0.025 6"/>
            <shaderParameter name="colorMat1" value="0.35 0.031 0.025 6"/>	
            <shaderParameter name="colorMat2" value="0.35 0.031 0.025 6"/>			
        </material>			
    </baseMaterial>	
	
    <bodyNivaSKMaterialConfigurations>
        <bodyNivaSKMaterialConfiguration name="Red01" color="0.28 0.031 0.025 6"/>
        <bodyNivaSKMaterialConfiguration name="Red02" color="0.5 0.085 0.05 6"/>	
        <bodyNivaSKMaterialConfiguration name="Red03" color="0.347 0.085 0.05 6"/>	
        <bodyNivaSKMaterialConfiguration name="Green01" color="0.23 0.3 0.08 6"/>
        <bodyNivaSKMaterialConfiguration name="Green02" color="0.01 0.32 0.12 6"/>
        <material name="zhze4_mat" shaderParameter="colorMat0" />
    </bodyNivaSKMaterialConfigurations>			
	
    <sunflowerZhzeMaterialConfigurations>
        <sunflowerZhzeMaterialConfiguration name="Red01" color="0.28 0.031 0.025 6"/>
        <sunflowerZhzeMaterialConfiguration name="Red02" color="0.5 0.085 0.05 6"/>	
        <sunflowerZhzeMaterialConfiguration name="Red03" color="0.347 0.085 0.05 6"/>	
        <sunflowerZhzeMaterialConfiguration name="Green01" color="0.23 0.3 0.08 6"/>
        <sunflowerZhzeMaterialConfiguration name="Green02" color="0.01 0.32 0.12 6"/>		
        <sunflowerZhzeMaterialConfiguration name="White" color="0.603 0.603 0.603 6"/> 			
        <material name="zhze4Module_mat" shaderParameter="colorMat0" />	
        <material name="grid_mat" shaderParameter="colorMat0" />	
        <material name="grid_mat" shaderParameter="colorMat1" />	
        <material name="grid_mat" shaderParameter="colorMat2" />
    </sunflowerZhzeMaterialConfigurations>	

    <shieldsNivaSKConfigurations title="$l10n_configuration_shieldsNivaSK">
        <shieldsNivaSKConfiguration name="$l10n_configuration_functionOnNivaSK">
            <objectChange node="shieldMainDefault" visibilityActive="true" />
            <objectChange node="upperDraftShield" visibilityActive="true" />	
            <objectChange node="upperDraftShaftShield" visibilityActive="true" />			
        </shieldsNivaSKConfiguration>	
        <shieldsNivaSKConfiguration name="$l10n_configuration_functionOffNivaSK">
            <objectChange node="shieldMainDefault" visibilityActive="false" />
            <objectChange node="upperDraftShield" visibilityActive="false" />	
            <objectChange node="upperDraftShaftShield" visibilityActive="false" />				
        </shieldsNivaSKConfiguration>
    </shieldsNivaSKConfigurations>		

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

    <i3dMappings>
        <i3dMapping id="zhze4_main_component1" node="0>" />
        <i3dMapping id="zhze4_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="ptoInputNode" node="0>0|0|1" />
        <i3dMapping id="ptoDetachNode" node="0>0|0|2" />
        <i3dMapping id="reelArmHydraulic" node="0>0|1|0" />
        <i3dMapping id="reelArmHydraulicPunch" node="0>0|1|0|0" />
        <i3dMapping id="reelArm" node="0>0|2|0" />
        <i3dMapping id="reelMover" node="0>0|2|0|0|0|0" />
        <i3dMapping id="reel" node="0>0|2|0|0|0|0|0" />
        <i3dMapping id="upperDraftShaftRef" node="0>0|2|0|0|0|0|1" />	
        <i3dMapping id="upperDraft" node="0>0|2|0|1" />
        <i3dMapping id="upperDraftShaft" node="0>0|2|0|1|0" />
        <i3dMapping id="chain04" node="0>0|2|0|1|0|0" />		
        <i3dMapping id="upperDraftShaftShield" node="0>0|2|0|1|1" />
        <i3dMapping id="rotatingPart03" node="0>0|2|0|1|2" />
        <i3dMapping id="chain03" node="0>0|2|0|1|3" />		
        <i3dMapping id="rotatingPart04" node="0>0|2|0|2" />
        <i3dMapping id="upperDraftShield" node="0>0|2|0|3" />
        <i3dMapping id="reelArmHydraulicRef" node="0>0|2|0|4" />
        <i3dMapping id="reelArmHydraulicRefFrame" node="0>0|2|0|5" />
        <i3dMapping id="mainDrum" node="0>0|2|1" />
        <i3dMapping id="bladesRot" node="0>0|2|2" />
        <i3dMapping id="blades" node="0>0|2|2|0" />
        <i3dMapping id="bladesDraft1" node="0>0|2|2|0|0" />
        <i3dMapping id="bladesDraft2" node="0>0|2|2|0|0|0" />
        <i3dMapping id="bladesRefRot" node="0>0|2|3" />
        <i3dMapping id="bladesRef" node="0>0|2|3|0" />
        <i3dMapping id="bladesDraftRefRot" node="0>0|2|4" />
        <i3dMapping id="bladesDraftRef" node="0>0|2|4|0" />
        <i3dMapping id="rotatingPart01" node="0>0|3|0" />
        <i3dMapping id="rotatingPart02" node="0>0|3|1" />
        <i3dMapping id="mainShaft" node="0>0|3|2" />
        <i3dMapping id="draftBladesRef" node="0>0|3|2|0" />
        <i3dMapping id="chain01" node="0>0|3|3" />
        <i3dMapping id="chain02" node="0>0|3|4" />		
        <i3dMapping id="aiMarkerLeft" node="0>0|4|0|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|4|0|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|4|0|2" />	
        <i3dMapping id="aiCollisionTrigger" node="0>0|4|1" />
        <i3dMapping id="workAreaStart" node="0>0|5|0" />
        <i3dMapping id="workAreaWidth" node="0>0|5|1" />
        <i3dMapping id="workAreaHeight" node="0>0|5|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|5|3" />
        <i3dMapping id="heightNode" node="0>0|5|4" />
        <i3dMapping id="testAreaStart1" node="0>0|6|0" />
        <i3dMapping id="testAreaWidth1" node="0>0|6|0|0" />
        <i3dMapping id="testAreaHeight1" node="0>0|6|0|1" />
        <i3dMapping id="testAreaStart2" node="0>0|6|1" />
        <i3dMapping id="testAreaWidth2" node="0>0|6|1|0" />
        <i3dMapping id="testAreaHeight2" node="0>0|6|1|1" />
        <i3dMapping id="testAreaStart3" node="0>0|6|2" />
        <i3dMapping id="testAreaWidth3" node="0>0|6|2|0" />
        <i3dMapping id="testAreaHeight3" node="0>0|6|2|1" />
        <i3dMapping id="testAreaStart4" node="0>0|6|3" />
        <i3dMapping id="testAreaWidth4" node="0>0|6|3|0" />
        <i3dMapping id="testAreaHeight4" node="0>0|6|3|1" />
        <i3dMapping id="effectCenter" node="0>0|7|0" />
        <i3dMapping id="effectLeft" node="0>0|7|1" />
        <i3dMapping id="effectRight" node="0>0|7|2" />
        <i3dMapping id="smokeEmitter" node="0>0|7|3" />
        <i3dMapping id="effectParticles" node="0>0|7|4" />
        <i3dMapping id="workAreaStrawStart" node="0>0|7|4|0|0" />
        <i3dMapping id="workAreaStrawWidth" node="0>0|7|4|0|1" />
        <i3dMapping id="workAreaStrawHeight" node="0>0|7|4|0|2" />				
        <i3dMapping id="shieldMainDefault" node="0>0|8|0|0" />
        <i3dMapping id="sunflowerModule" node="0>0|8|1|0" />
        <i3dMapping id="details_gridSunflower" node="0>0|8|1|0|0" />
    </i3dMappings>
</vehicle>
