﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="mower_animated">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Pöttinger Novacat 302ED</en>
        <de>Pöttinger Novacat 302ED</de>
    </name>
    <typeDesc>$l10n_TypeDesc_Mower</typeDesc>
    <filename>data/vehicles/tools/poettinger/poettingerNovacat302ED.i3d</filename>

    <size width="6" widthOffset="2.5" length="2.5" lengthOffset="-0.5" />

    <powerConsumer ptoRpm="540" neededPtoPower="30"/>
    <speedLimit value="22" />

    <lightCoronas>
        <lightCorona index="0>0|9" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>0|10" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>0|11|0" />
        <turnSignalRight index="0>0|11|1" />
    </turnSignals>

    <workAreas>
        <workArea startIndex="0>0|5|0|5" widthIndex="0>0|5|0|6" heightIndex="0>0|5|0|7" foldMinLimit="0" foldMaxLimit="0.1" refNodeIndex="0" type="mower" disableBackwards="false" />
        <workArea startIndex="0>0|5|0|8" widthIndex="0>0|5|0|9" heightIndex="0>0|5|0|10" type="mowerDrop" disableBackwards="false" />
    </workAreas>

    <groundReferenceNodes>
        <groundReferenceNode index="1>" threshold="0.2" />
    </groundReferenceNodes>

    <inputAttacherJoints>
        <inputAttacherJoint index="0>0|0" jointType="implement" topReferenceNode="0>0|1" lowerDistanceToGround="0.8" upperDistanceToGround="0.8" transLimitScale="0 0 0" rotLimitScale="0 0 0" indexPTO="0>0|2" />
    </inputAttacherJoints>

    <mowerSound file="$data/vehicles/tools/mower.wav" pitchOffset="1" volume="0.5" />

    <isDefaultLowered value="false"/>
    <needsLowering value="true" />
    <allowsLowering value="false" />

    <turnedOnRotationNodes>
        <!-- drum -->
        <turnedOnRotationNode index="0>0|5|0|0" rotAxis="1" type="mower" rotSpeed="2000"  turnOnFadeTime="3" turnOffFadeTime="3" />
        <!-- cutters -->
        <turnedOnRotationNode index="0>0|5|0|1|0" rotAxis="2" type="mower" rotSpeed="1200"  turnOnFadeTime="3" turnOffFadeTime="3" />
        <turnedOnRotationNode index="0>0|5|0|1|1" rotAxis="2" type="mower" rotSpeed="1200"  turnOnFadeTime="3" turnOffFadeTime="3" />
        <turnedOnRotationNode index="0>0|5|0|1|2" rotAxis="2" type="mower" rotSpeed="-1200" turnOnFadeTime="3" turnOffFadeTime="3" />
        <turnedOnRotationNode index="0>0|5|0|1|3" rotAxis="2" type="mower" rotSpeed="1200"  turnOnFadeTime="3" turnOffFadeTime="3" />
        <turnedOnRotationNode index="0>0|5|0|1|4" rotAxis="2" type="mower" rotSpeed="-1200" turnOnFadeTime="3" turnOffFadeTime="3" />
        <turnedOnRotationNode index="0>0|5|0|1|5" rotAxis="2" type="mower" rotSpeed="1200"  turnOnFadeTime="3" turnOffFadeTime="3" />
        <turnedOnRotationNode index="0>0|5|0|1|6" rotAxis="2" type="mower" rotSpeed="-1200" turnOnFadeTime="3" turnOffFadeTime="3" />
    </turnedOnRotationNodes>

    <foldingParts foldMiddleAnimTime="0.14" turnOnFoldMaxLimit="0.25" turnOnFoldMinLimit="0" turnOffOnFold="true" turnOnFoldDirection="-1" detachingMinLimit="0.135">
        <foldingPart animationName="folding" speedScale="0.6" />
    </foldingParts>

    <animations>
        <animation name="folding">
            <!-- lowering -->
            <part componentJointIndex="0" startTime="0.0" endTime="0.7" startTransLimit="0 0.4 0" startRotLimit="0 0 9" endTransLimit="0 0 0" endRotLimit="0 0 0" />
            <part node="0>0|4"            startTime="0.0" endTime="0.7" startRot="0 0 0"   endRot="0 0 -10" />
            <!-- folding -->
            <part node="0>0|4"            startTime="1.0" endTime="5.0" startRot="0 0 -10"   endRot="0 0 -117.8" />
        </animation>
        <animation name="moveSupport">
            <part node="0>0|3" startTime="0" endTime="0.6" startTrans="0.251 0.407 0" endTrans="0.251 0.012 0"/>
        </animation>
    </animations>

    <movingTools>
        <movingTool index="0>0|4"   componentJointIndex="0" anchorActor="0">
            <dependentPart index="0>0|5" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- arm -->
        <movingPart index="0>0|5" referencePoint="1>0" referenceFrame="0>0|4" isActiveDirty="true" playSound="false">
            <dependentPart index="0>0|5|0" />
            <dependentPart index="0>0|6" />
        </movingPart>
        <!-- mower -->
        <movingPart index="0>0|5|0" referenceFrame="1>" playSound="false" >
            <dependentPart index="0>0|7" />
            <dependentPart index="0>0|5|2" />
        </movingPart>
        <!-- hydraulic -->
        <movingPart index="0>0|6" referencePoint="0>0|5|1" referenceFrame="0>">
            <translatingPart index="0>0|6|0" />
        </movingPart>
        <!-- mower pto -->
        <movingPart index="0>0|7" referencePoint="0>0|5|0|3" referenceFrame="0>">
            <translatingPart index="0>0|7|0" />
        </movingPart>
        <!-- damper -->
        <movingPart index="0>0|5|2" referencePoint="0>0|5|0|2" referenceFrame="0>0|5|0|2">
            <translatingPart index="0>0|5|2|0" />
        </movingPart>
    </movingParts>

    <mowerEffects>
        <mowerEffect mowerCutArea="0">
            <effectNode node="0|0|0" linkNode="0>0|5|0|11" position="0 0 0"  filename="$data/vehicles/particleAnimations/poettinger/poettingerNovacat302ED.i3d" />
        </mowerEffect>
    </mowerEffects>

    <support animationName="moveSupport" />

    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <components count="2">
        <component1 centerOfMass="0 0.7 0" solverIterationCount="10" />
        <component2 centerOfMass="0 0.4 0" solverIterationCount="10" />
        <joint component1="0" component2="1" index="0>0|4|0" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" fileTurnedOn="$dataS2/menu/schemas/implementSchemaTurnedOn.png" fileSelectedTurnedOn="$dataS2/menu/schemas/implementSchemaSelectedTurnedOn.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>