﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tedder">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Kuhn GF 6502</en>
        <de>Kuhn GF 6502</de>
    </name>
    <typeDesc>$l10n_TypeDesc_Tedder</typeDesc>
    <filename>data/vehicles/tools/kuhn/kuhnGF6502.i3d</filename>

    <size width="3.5" length="3" lengthOffset="-0.3"/>

    <powerConsumer ptoRpm="500" neededPtoPower="20"/>
    <speedLimit value="19" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel  restLoad="0.1" repr="0>0" radius="0.18" initialCompression="50" suspTravel="0.05" spring="30" damper="10" mass="0.6" maxLatStiffness="90" maxLongStiffness="30" maxLatStiffnessLoad="1.0" />
        <wheel  restLoad="0.1" repr="0>1" radius="0.18" initialCompression="50" suspTravel="0.05" spring="30" damper="10" mass="0.6" maxLatStiffness="90" maxLongStiffness="30" maxLatStiffnessLoad="1.0" />
    </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0|1" linkNode="0>0" filename="$data/vehicles/wheels/trelleborg/trelleborgT510_16X6_50_8.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>1" filename="$data/vehicles/wheels/trelleborg/trelleborgT510_16X6_50_8.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>2|2|1"   filename="$data/vehicles/wheels/trelleborg/trelleborgT510_16X6_50_8.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>2|2|0|0" filename="$data/vehicles/wheels/trelleborg/trelleborgT510_16X6_50_8.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>2|3|1"   filename="$data/vehicles/wheels/trelleborg/trelleborgT510_16X6_50_8.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>2|3|0|0" filename="$data/vehicles/wheels/trelleborg/trelleborgT510_16X6_50_8.i3d" />
    </dynamicallyLoadedParts>

    <steeringAxleAngleScale startSpeed="5" endSpeed="90" />

    <lightCoronas>
        <lightCorona index="0>2|10" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>2|11" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>2|12|0" />
        <turnSignalRight index="0>2|12|1" />
    </turnSignals>

    <workAreas>
        <workArea startIndex="0>2|13"   widthIndex="0>2|14"  heightIndex="0>2|15"  foldMinLimit="0" foldMaxLimit="1"   particleSystemIndex="0" dropAreaIndex="0" refNodeIndex="0" type="tedder" />
        <workArea startIndex="0>2|2|4"  widthIndex="0>2|2|5" heightIndex="0>2|2|6" foldMinLimit="0" foldMaxLimit="0.2" particleSystemIndex="1" dropAreaIndex="1" refNodeIndex="0" type="tedder" />
        <workArea startIndex="0>2|3|4"  widthIndex="0>2|3|5" heightIndex="0>2|3|6" foldMinLimit="0" foldMaxLimit="0.2" particleSystemIndex="2" dropAreaIndex="2" refNodeIndex="0" type="tedder" />

        <workArea startIndex="0>2|16"  widthIndex="0>2|17"  heightIndex="0>2|18"  type="tedderDrop" />
        <workArea startIndex="0>2|2|7" widthIndex="0>2|2|8" heightIndex="0>2|2|9" type="tedderDrop" />
        <workArea startIndex="0>2|3|7" widthIndex="0>2|3|8" heightIndex="0>2|3|9" type="tedderDrop" />
    </workAreas>

    <groundReferenceNodes>
        <groundReferenceNode index="0>" threshold="0.2" />
    </groundReferenceNodes>

    <grassParticleSystems>
        <grassParticleSystem node="0>" position=" 0.00 0.5 -0.25" rotation="0 0 0" file="$data/vehicles/particleAnimations/kuhn/kuhnGF6502.i3d" />
        <grassParticleSystem node="0>" position=" 2.33 0.5 -0.25" rotation="0 0 0" file="$data/vehicles/particleAnimations/kuhn/kuhnGF6502.i3d" />
        <grassParticleSystem node="0>" position="-2.33 0.5 -0.25" rotation="0 0 0" file="$data/vehicles/particleAnimations/kuhn/kuhnGF6502.i3d" />
    </grassParticleSystems>

    <inputAttacherJoints>
        <inputAttacherJoint index="1>0|0" rootNode="1>" jointType="implement" topReferenceNode="1>0|1" upperRotationOffset="0" rotLimitScale="0.05 0.05 0.05" lowerDistanceToGround="0.78" upperDistanceToGround="1.0" indexPTO="0>2|9" />
    </inputAttacherJoints>

    <groundReferenceNode index="0>" threshold="0.1" />

    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <tedderSound file="$data/vehicles/tools/tedder.wav" pitchOffset="1" volume="1.4"/>

    <support animationName="moveSupport" />

    <foldingParts startMoveDirection="1" turnOnFoldMaxLimit="0.2" turnOnFoldMinLimit="0" turnOffOnFold="true" >
        <foldingPart animationName="rightFold" speedScale="0.55" />
        <foldingPart animationName="leftFold" speedScale="0.5" />
    </foldingParts>

    <animations>
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>2|8|1" startTime="0" duration="0.2" startTrans="-0.00017 0.75394 -0.73808" endTrans="-0.00017 -0.00935 -0.73808" />
            <part node="0>2|8|0" startTime="0" duration="0.2" startRot="0 0 0" endRot="-95 0 0" />
        </animation>

        <animation name="rightFold">
            <part node="0>2|3|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -28" />
            <part node="0>2|3" startTime="1" endTime="4" startRot="0 0 0" endRot="0 0 -90" />
        </animation>

        <animation name="leftFold">
            <part node="0>2|2|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 28" />
            <part node="0>2|2" startTime="1" endTime="4" startRot="0 0 0" endRot="0 0 90" />
        </animation>

        <animation name="lowerAnimation">
            <part startTime="0" endTime="1.5" componentJointIndex="0" startRotLimit="0 0 0" endRotLimit="0 16 0" />
        </animation>
    </animations>

    <movingTools>
        <!-- arm left-->
        <movingTool index="0>2|2" >
            <dependentPart index="0>2|4" />
            <dependentPart index="0>2|6" />
        </movingTool>
        <movingTool index="0>2|2|0" >
            <dependentPart index="0>2|4" />
            <dependentPart index="0>2|2|0|2" />
            <dependentPart index="0>2|2|3" />
        </movingTool>
        <!-- arm right-->
        <movingTool index="0>2|3" >
            <dependentPart index="0>2|5" />
            <dependentPart index="0>2|7" />
        </movingTool>
        <movingTool index="0>2|3|0" >
            <dependentPart index="0>2|5" />
            <dependentPart index="0>2|3|0|2" />
            <dependentPart index="0>2|3|3" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- hydraulic -->
        <movingPart index="0>2|4" referencePoint="0>2|2|0|3" referenceFrame="0>2|2">
            <translatingPart index="0>2|4|0" />
        </movingPart>
        <movingPart index="0>2|5" referencePoint="0>2|3|0|3" referenceFrame="0>2|3">
            <translatingPart index="0>2|5|0" />
        </movingPart>
        <movingPart index="0>2|2|0|2" referencePoint="0>2|2|10" referenceFrame="0>2|3" playSound="false" />
        <movingPart index="0>2|3|0|2" referencePoint="0>2|3|10" referenceFrame="0>2|3" playSound="false" />
        <movingPart index="0>2|6" referencePoint="0>2|2|11" referenceFrame="0>" scaleZ="true" playSound="false" />
        <movingPart index="0>2|7" referencePoint="0>2|3|11" referenceFrame="0>" scaleZ="true" playSound="false" />
        <movingPart index="0>2|2|3" referencePoint="0>2|2|0|4" referenceFrame="0>2|2" scaleZ="true" playSound="false" />
        <movingPart index="0>2|3|3" referencePoint="0>2|3|0|4" referenceFrame="0>2|3" scaleZ="true" playSound="false" />
        <movingPart index="1>0|2" referencePoint="0>2|19" referenceFrame="0>2|19" isActiveDirty="true" playSound="false">
            <translatingPart index="1>0|2|0" />
        </movingPart>
    </movingParts>

    <speedRotatingParts>
        <speedRotatingPart index="0>2|2|1"   radius="0.167" foldMinLimit="0" foldMaxLimit="0.04" refNodeIndex="0" />
        <speedRotatingPart index="0>2|2|0|0" radius="0.167" foldMinLimit="0" foldMaxLimit="0.02" refNodeIndex="0" />
        <speedRotatingPart index="0>2|3|1"   radius="0.167" foldMinLimit="0" foldMaxLimit="0.04" refNodeIndex="0" />
        <speedRotatingPart index="0>2|3|0|0" radius="0.167" foldMinLimit="0" foldMaxLimit="0.02" refNodeIndex="0" />
    </speedRotatingParts>

    <turnedOnRotationNodes>
        <turnedOnRotationNode index="0>2|2|0|1" type="tedder" rotSpeed="-600" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <turnedOnRotationNode index="0>2|2|2"   type="tedder" rotSpeed="600" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <turnedOnRotationNode index="0>2|0"     type="tedder" rotSpeed="-600" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <turnedOnRotationNode index="0>2|1"     type="tedder" rotSpeed="600" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <turnedOnRotationNode index="0>2|3|2"   type="tedder" rotSpeed="-600" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <turnedOnRotationNode index="0>2|3|0|1" type="tedder" rotSpeed="600" turnOnFadeTime="1" turnOffFadeTime="1"/>
    </turnedOnRotationNodes>

    <lowerAnimation name="lowerAnimation" />

    <driveGroundParticleSystems>
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
    </driveGroundParticleSystems>

    <components count="2">
        <component1 centerOfMass="0 0.5 0.3" solverIterationCount="10" />
        <component2 centerOfMass="0 0 0" solverIterationCount="10" />
        <joint component1="0" component2="1" index="1>1" rotLimit="0 0 0" transLimit="0 0 0" /> <!-- rotLimitSpring="0.5 0.5 0.5" rotLimitDamping="2 2 2" /-->
    </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>
