﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="cutter_mouseControlled">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>New Holland Varifeed 18ft</en>
        <de>New Holland Varifeed 18ft</de>
    </name>
    <typeDesc>$l10n_TypeDesc_Cutter</typeDesc>
    <filename>data/vehicles/cutters/newHolland/newHollandHeader18.i3d</filename>

    <size width="6" length="2.5" />

    <speedLimit value="10" />

    <cutterMovingDirection>-1</cutterMovingDirection>


    <turnedOnRotationNodes>
        <turnedOnRotationNode index="0>7|0"     type="cutter" rotSpeed="-800" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1" />
        <turnedOnRotationNode index="0>7|2|0|0" type="cutter" rotSpeed="-200"  rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1" />
        <turnedOnRotationNode index="0>7|2|0|1" type="cutter" rotSpeed="-200"  rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1" />
    </turnedOnRotationNodes>

    <fruitExtraObjects>
        <fruitExtraObject fruitType="rape"   anim="varifeedRape"/>
        <fruitExtraObject fruitType="wheat"  index="0>7|1|1|1"/>
        <fruitExtraObject fruitType="barley" index="0>7|1|1|1"/>
    </fruitExtraObjects>

    <workAreas>
        <workArea startIndex="0>1" widthIndex="0>2" heightIndex="0>3" type="cutter" />
    </workAreas>

    <inputAttacherJoints>
        <inputAttacherJoint index="0>0" jointType="cutter" upperDistanceToGround="1" lowerDistanceToGround="0.8" indexPTO="0>6" />
    </inputAttacherJoints>

    <mouseControls>
        <mouseControl iconFilename="$dataS2/menu/moveControls/reel_arm_movement.png" axis="AXIS_FRONTLOADER_ARM" />
        <mouseControl iconFilename="$dataS2/menu/moveControls/reel_movement.png" axis="AXIS_FRONTLOADER_TOOL" />
    </mouseControls>

    <movingTools>
        <movingTool index="0>7|2|0" transSpeed="0.1" transAcceleration="10" transMax="-1.237" transMin="-1.6" translationAxis="3" axis="AXIS_FRONTLOADER_TOOL" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_TOOL" invertMouseAxis="true" speedFactor="0.9">
            <dependentPart index="0>7|2|4" />
            <dependentPart index="0>7|2|1" />
        </movingTool>

        <movingTool index="0>7|2" rotSpeed="20" rotAcceleration="50" rotMax="8" rotMin="-27.846" axis="AXIS_FRONTLOADER_ARM" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="false" speedFactor="0.9">
            <dependentPart index="0>7|3" />
            <dependentPart index="0>7|2|2" />
            <dependentPart index="0>7|2|3" />
            <dependentPart index="0>7|4" />
        </movingTool>

        <movingTool index="0>7|2|0|1">
            <dependentPart index="0>7|2|0|0|0" />
            <dependentPart index="0>7|2|0|0|1" />
            <dependentPart index="0>7|2|0|0|2" />
            <dependentPart index="0>7|2|0|0|3" />
            <dependentPart index="0>7|2|0|0|4" />
            <dependentPart index="0>7|2|0|0|5" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- spikes -->
        <movingPart index="0>7|2|0|0|0" referencePoint="0>7|2|0|1|0" referenceFrame="0>" />
        <movingPart index="0>7|2|0|0|1" referencePoint="0>7|2|0|1|1" referenceFrame="0>" />
        <movingPart index="0>7|2|0|0|2" referencePoint="0>7|2|0|1|2" referenceFrame="0>" />
        <movingPart index="0>7|2|0|0|3" referencePoint="0>7|2|0|1|3" referenceFrame="0>" />
        <movingPart index="0>7|2|0|0|4" referencePoint="0>7|2|0|1|4" referenceFrame="0>" />
        <movingPart index="0>7|2|0|0|5" referencePoint="0>7|2|0|1|5" referenceFrame="0>" />
        <!-- reel hydraulic -->
        <movingPart index="0>7|3" referencePoint="0>7|2|5" referenceFrame="0>7|2|5">
            <translatingPart index="0>7|3|0" />
        </movingPart>
        <!-- pipes -->
        <movingPart index="0>7|2|2" referencePoint="0>7|5" referenceFrame="0>" scaleZ="true" />
        <movingPart index="0>7|2|3" referencePoint="0>7|6" referenceFrame="0>" scaleZ="true" />
        <movingPart index="0>7|2|4" referencePoint="0>7|2|0|3" referenceFrame="0>" scaleZ="true" />
        <!-- marker -->
        <movingPart index="0>7|4" referencePoint="0>7|2|6" referenceFrame="0>" />
        <!-- reel mover marker -->
        <movingPart index="0>7|2|1" referencePoint="0>7|2|0|2" localReferencePoint="0>7|2|1|0" referenceFrame="0>7|2|7">
            <dependentPart index="0>7|2|1|0" />
        </movingPart>
        <movingPart index="0>7|2|1|0" referencePoint="0>7|2|0|2" referenceFrame="0>7|2|0|2" scaleZ="true" />
    </movingParts>

    <animations>
        <!-- varifeed rape -->
        <animation name="varifeedRape">
            <part node="0>7|1"     startTime="0" endTime="0.9" startTrans="0.078 0 0.567" endTrans="0.078 0 0.167" />
            <part node="0>7|1|1|0" startTime="0.9" endTime="0.95" visibility="false" />
            <part node="0>7|1|1|0" startTime="0.95" endTime="1" visibility="true" />
        </animation>
    </animations>

    <aiLeftMarker index="0>4" />
    <aiRightMarker index="0>5" />
    <aiTrafficCollisionTrigger index="0>8" />
    <forceSelectionOnAttach value="false" />

    <dynamicMount forceLimitScale="1" />

    <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />
    <threshingParticleSystem position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/threshingCutterParticles.i3d" />
    <preferedCombineSize>2</preferedCombineSize>
    <fruitTypes fruitTypes="wheat rape barley"/>

    <cutterTestAreas>
        <cutterTestArea startIndex="0>9|0" widthIndex="0>9|0|0" heightIndex="0>9|0|1" />
        <cutterTestArea startIndex="0>9|1" widthIndex="0>9|1|0" heightIndex="0>9|1|1" />
        <cutterTestArea startIndex="0>9|2" widthIndex="0>9|2|0" heightIndex="0>9|2|1" />
        <cutterTestArea startIndex="0>9|3" widthIndex="0>9|3|0" heightIndex="0>9|3|1" />
        <cutterTestArea startIndex="0>9|4" widthIndex="0>9|4|0" heightIndex="0>9|4|1" />
    </cutterTestAreas>

    <cutterEffects>
        <cutterEffect fruitType="wheat" effectClass="CutterEffect" >
            <effectNode node="0|0|0|0" linkNode="0>" speedScale="0.0018"                                                          filename="$data/vehicles/particleAnimations/newHolland/newHollandHeader18.i3d" />
            <effectNode node="0|0|0|1" linkNode="0>" speedScale="0.0013" useInterpolation="true" minOffset="3" useMaxValue="true" filename="$data/vehicles/particleAnimations/newHolland/newHollandHeader18.i3d" />
            <effectNode node="0|0|0|2" linkNode="0>" speedScale="0.0013" useInterpolation="true" minOffset="3"                    filename="$data/vehicles/particleAnimations/newHolland/newHollandHeader18.i3d" />
        </cutterEffect>
        <cutterEffect fruitType="barley" effectClass="CutterEffect" >
            <effectNode node="0|0|1|0" linkNode="0>" speedScale="0.0018"                                                          filename="$data/vehicles/particleAnimations/newHolland/newHollandHeader18.i3d" />
            <effectNode node="0|0|1|1" linkNode="0>" speedScale="0.0013" useInterpolation="true" minOffset="3" useMaxValue="true" filename="$data/vehicles/particleAnimations/newHolland/newHollandHeader18.i3d" />
            <effectNode node="0|0|1|2" linkNode="0>" speedScale="0.0013" useInterpolation="true" minOffset="3"                    filename="$data/vehicles/particleAnimations/newHolland/newHollandHeader18.i3d" />
        </cutterEffect>
        <cutterEffect fruitType="rape" effectClass="CutterEffect" >
            <effectNode node="0|0|2|0" linkNode="0>" speedScale="0.0018"                                                          filename="$data/vehicles/particleAnimations/newHolland/newHollandHeader18.i3d" />
            <effectNode node="0|0|2|1" linkNode="0>" speedScale="0.0013" useInterpolation="true" minOffset="3" useMaxValue="true" filename="$data/vehicles/particleAnimations/newHolland/newHollandHeader18.i3d" />
            <effectNode node="0|0|2|2" linkNode="0>" speedScale="0.0013" useInterpolation="true" minOffset="3"                    filename="$data/vehicles/particleAnimations/newHolland/newHollandHeader18.i3d" />
        </cutterEffect>
    </cutterEffects>

    <washable dirtDuration="300" washDuration="1" workMultiplier="2" />

    <components count="1">
        <component1 centerOfMass="0 0 0" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>
