﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="cultivator_animated">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Vogel &amp; Noot TerraDisc 600</en>
        <de>Vogel &amp; Noot TerraDisc 600</de>
    </name>
    <typeDesc>$l10n_TypeDesc_Cultivator</typeDesc>
    <filename>data/vehicles/tools/vogelNoot/vogelNootTerraDisc600.i3d</filename>

    <size width="4" length="6.5"/>

    <speedLimit value="22" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel  restLoad="1.3" repr="0>0|2|4"   radius="0.42" initialCompression="40" suspTravel="0.05" spring="50" damper="20" mass="0.06" maxLatStiffness="400" width="0.35" hasTyreTracks="true" tyreTrackAtlasIndex="1" />
        <wheel  restLoad="1.3" repr="0>0|2|5"   radius="0.42" initialCompression="40" suspTravel="0.05" spring="50" damper="20" mass="0.06" maxLatStiffness="400" width="0.35" hasTyreTracks="true" tyreTrackAtlasIndex="1" />
        <wheel  restLoad="1.9" repr="0>0|4|2|2" radius="0.27" initialCompression="50" suspTravel="0.05" spring="60" damper="20" mass="0.2" maxLatStiffness="400" />
        <wheel  restLoad="1.9" repr="0>0|5|2|2" radius="0.27" initialCompression="50" suspTravel="0.05" spring="60" damper="20" mass="0.2" maxLatStiffness="400" />
    </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|1" linkNode="0>0|2|4"     filename="$data/vehicles/wheels/trelleborg/trelleborgAW305_380_55_17.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="0>0|2|5"     filename="$data/vehicles/wheels/trelleborg/trelleborgAW305_380_55_17.i3d" />
    </dynamicallyLoadedParts>

    <brakeForce>0.7</brakeForce>

    <lightCoronas>
        <lightCorona index="0>0|2|1" />
        <lightCorona index="0>0|15" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>0|2|2" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>0|16|0" />
        <turnSignalRight index="0>0|16|1" />
        <turnSignalLeft index="0>0|2|3|0" />
        <turnSignalRight index="0>0|2|3|1" />
    </turnSignals>

    <workAreas>
        <workArea startIndex="0>0|9" widthIndex="0>0|10" heightIndex="0>0|11" foldMinLimit="0" foldMaxLimit="0.01" refNodeIndex="0" type="cultivator" chargeValue="1" />
    </workAreas>

    <groundReferenceNodes>
        <groundReferenceNode index="0>" threshold="0.05" depthNode="0>0|18" />
    </groundReferenceNodes>

    <cultivatorSound file="$data/vehicles/tools/cultivatorSound.wav" pitchOffset="1" volume="1"/>
    <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />

    <!-- recommended horsepower by manufacturer: 180 - 300 -->
    <powerConsumer neededPtoPower="0" forceNode="0>" maxForce="34" />

    <inputAttacherJoints>
        <inputAttacherJoint index="1>0" jointType="implement" rootNode="1>" allowsJointRotLimitMovement="false" rotLimitScale="1 1 1" lowerDistanceToGround="0.8" upperDistanceToGround="1.0" />
    </inputAttacherJoints>

    <groundParticleAnimations>
        <groundParticleAnimation file="$data/vehicles/particleAnimations/vogelNoot/vogelNootTerraDisc600.i3d" >
            <node index="0>0|17" animMeshIndex="0|0" refNodeIndex="0" />
        </groundParticleAnimation>

        <groundParticle file="$data/vehicles/particleAnimations/vogelNoot/vogelNootTerraDisc600.i3d" >
            <node index="0>0|17" particleIndex="1" refNodeIndex="0" />
        </groundParticle>
    </groundParticleAnimations>

    <isDefaultLowered value="false"/>
    <needsLowering value="true" />
    <aiNeedsLowering value="true" />
    <allowsLowering value="true" />
    <onlyActiveWhenLowered value="false" />

    <aiLeftMarker index="0>0|12" />
    <aiRightMarker index="0>0|13" />
    <aiBackMarker index="0>0|14" />

    <aiForceTurnNoBackward value="true" />

    <speedRotatingParts>
        <speedRotatingPart index="0>0|4|2|0" wheelIndex="2" radius="0.27" foldMinLimit="0" foldMaxLimit="0.4" />
        <speedRotatingPart index="0>0|4|2|1" wheelIndex="2" radius="0.27" foldMinLimit="0" foldMaxLimit="0.4" />
        <speedRotatingPart index="0>0|5|2|0" wheelIndex="3" radius="0.27" foldMinLimit="0" foldMaxLimit="0.4" />
        <speedRotatingPart index="0>0|5|2|1" wheelIndex="3" radius="0.27" foldMinLimit="0" foldMaxLimit="0.4" />

        <speedRotatingPart shaderNode="0>0|4|1|0" radius="0.254" refNodeIndex="0" />
        <speedRotatingPart shaderNode="0>0|4|1|1" radius="0.254" refNodeIndex="0" />
        <speedRotatingPart shaderNode="0>0|5|1|0" radius="0.254" refNodeIndex="0" />
        <speedRotatingPart shaderNode="0>0|5|1|1" radius="0.254" refNodeIndex="0" />
    </speedRotatingParts>

    <movingTools>
        <movingTool index="0>0|8" >
            <dependentPart index="0>0|1" />
        </movingTool>

        <movingTool index="0>0|2" wheelIndices="1 2" >
            <dependentPart index="0>0|3" />
        </movingTool>

        <movingTool index="0>0|4" wheelIndices="3" >
            <dependentPart index="0>0|6" />
        </movingTool>
        <movingTool index="0>0|5" wheelIndices="4" >
            <dependentPart index="0>0|7" />
        </movingTool>

        <movingTool index="0>0|5|4|0" >
            <dependentPart index="0>0|5|4|1" />
            <dependentPart index="0>0|5|4|2" />
        </movingTool>

        <movingTool index="0>0|4|2" wheelIndices="3" >
            <dependentPart index="0>0|4|3" />
        </movingTool>
        <movingTool index="0>0|5|2" wheelIndices="4" >
            <dependentPart index="0>0|5|3" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>0|1" referencePoint="1>0" referenceFrame="0>" isActiveDirty="true" playSound="false" />

        <movingPart index="0>0|3" referencePoint="0>0|2|0" referenceFrame="0>" >
            <translatingPart index="0>0|3|0" />
        </movingPart>

        <movingPart index="0>0|6" referencePoint="0>0|4|0" referenceFrame="0>0|4|0" >
            <translatingPart index="0>0|6|0" />
        </movingPart>
        <movingPart index="0>0|7" referencePoint="0>0|5|0" referenceFrame="0>0|5|0" >
            <translatingPart index="0>0|7|0" />
        </movingPart>

        <movingPart index="0>0|4|3" referencePoint="0>0|4|2|3" referenceFrame="0>0|4|2|3" >
            <translatingPart index="0>0|4|3|0" />
        </movingPart>
        <movingPart index="0>0|5|3" referencePoint="0>0|5|2|3" referenceFrame="0>0|5|2|3" >
            <translatingPart index="0>0|5|3|0" />
        </movingPart>

        <movingPart index="0>0|5|4|1" referencePoint="0>0|5|4|0|0" referenceFrame="0>0|5|4|0|0" >
            <translatingPart index="0>0|5|4|1|0" />
        </movingPart>
        <movingPart index="0>0|5|4|2" referencePoint="0>0|5|4|0|1" referenceFrame="0>0|5|4|0|1" scaleZ="true" />
    </movingParts>

    <foldingParts startMoveDirection="1" >
        <foldingPart animationName="folding" speedScale="1" />
    </foldingParts>

    <animations>
        <animation name="folding">
            <part node="0>0|2" startTime="0" endTime="4" startRot="110 0 0" endRot="-20 0 0"/>
            <part node="0>0|4" startTime="4" endTime="8.5" startRot="0 0 0"   endRot="0 0 90"/>
            <part node="0>0|5" startTime="4" endTime="8.7" startRot="0 0 0"   endRot="0 0 -90"/>
            <part node="0>0|5|4|0" startTime="7.5" endTime="8" startRot="0 0 0" endRot="0 0 14"/>
            <part node="0>0|5|4|0" startTime="8.5" endTime="9" startRot="0 0 14" endRot="0 0 0"/>
        </animation>

        <animation name="lowerAnimation">
            <part node="0>0|4|2" startTime="0" endTime="1.5" startRot="-5.5 0 0" endRot="0 0 0"/>
            <part node="0>0|5|2" startTime="0" endTime="1.5" startRot="-5.5 0 0" endRot="0 0 0"/>
        </animation>

        <!-- move support arm down/up -->
        <animation name="moveSupport">
            <part startTime="0" endTime="0.5" componentJointIndex="0" startRotLimit="0 100 0" endRotLimit="0 0 0"/>
            <part node="0>0|8" startTime="0" duration="0.5" startTrans="0.12924 0.48218 2.1194" endTrans="0.12924 0 2.1194" />
        </animation>
    </animations>

    <support animationName="moveSupport" />

    <aiTrafficCollisionTrigger index="0>1" />

    <lowerAnimation name="lowerAnimation" speed="1" />

    <washable dirtDuration="30" washDuration="1" workMultiplier="20" />

    <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.8 0.5" solverIterationCount="10" />
        <component2 solverIterationCount="10" />
        <joint component1="0" component2="1" index="0>0|0" rotLimit="0 0 0" transLimit="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>