﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="plough">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Lemken Diamant 12</en>
        <de>Lemken Diamant 12</de>
    </name>
    <typeDesc>$l10n_TypeDesc_Plough</typeDesc>
    <filename>data/vehicles/tools/lemken/lemkenDiamant12.i3d</filename>

    <size width="3" length="12.5" />
    
    <speedLimit value="17" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel  restLoad="2.9" repr="0>0|0|0" radius="0.537" width="0.56" initialCompression="40" suspTravel="0.1" spring="70" damper="25" mass="0.5" hasTyreTracks="true" tyreTrackAtlasIndex="3"/>
    </wheels>
    
    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="4|0" linkNode="0>0|0|0" filename="$data/vehicles/wheels/trelleborg/trelleborgT404_560_45_22_5.i3d" />
        <dynamicallyLoadedPart node="4|0" linkNode="0>0|1|0|3|0|1|0|0|8|0|0|0|0" filename="$data/vehicles/wheels/trelleborg/trelleborgAW305_340_55_16.i3d" />
    </dynamicallyLoadedParts>
    
    <brakeForce>1.2</brakeForce>

    <workAreas>
        <workArea startIndex="0>0|1|0|1|0" widthIndex="0>0|1|0|1|1" heightIndex="0>0|1|0|1|2" refNodeIndex="0" type="plough" />
    </workAreas>

    <groundReferenceNodes>
        <groundReferenceNode index="0>0|1|0" threshold="1" />
        <groundReferenceNode index="0>0|1|0|6" threshold="0" depthNode="0>0|1|0|6" />
        <groundReferenceNode index="0>0|1|0|8" threshold="0" depthNode="0>0|1|0|8" />
    </groundReferenceNodes>
    
    <powerConsumer neededPtoPower="0" forceNode="0>" maxForce="50" />

    <ploughTurnSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.5" volume="1.0"/>
    <ploughSound     file="$data/vehicles/tools/ploughSound.wav"  pitchOffset="0.5" volume="1.0"/>

    <groundParticleAnimations>
        <groundParticleAnimation file="$data/vehicles/particleAnimations/lemken/lemkenDiamant12.i3d" >
            <node index="0>0|1|0|5" animMeshIndex="0|0|0" refNodeIndex="1" />
            <node index="0>0|1|0|7" animMeshIndex="1|0|0" refNodeIndex="2" />
        </groundParticleAnimation>
        
        <groundParticle file="$data/vehicles/particleAnimations/lemken/lemkenDiamant12.i3d" >
            <node index="0>0|1|0|5" particleIndex="0|1" refNodeIndex="1" />
            <node index="0>0|1|0|7" particleIndex="1|1" refNodeIndex="2" />
        </groundParticle>
    </groundParticleAnimations> 

    <aiTrafficCollisionTrigger index="0>1" />
    <aiLeftMarker index="0>0|1|0|1|4" />
    <aiRightMarker index="0>0|1|0|1|3" />
    <aiBackMarker index="0>0|1|0|1|5" />

    <inputAttacherJoints>
        <inputAttacherJoint index="1>0|0" jointType="implement" rootNode="1>" topReferenceNode="1>0|1" allowsJointTransLimitMovement="true" allowsJointRotLimitMovement="false" />
    </inputAttacherJoints>

    <speedRotatingParts>
        <speedRotatingPart index="0>0|1|0|3|0|1|0|0|8|0|0|0|0" radius="0.371" invertDirectionOnRotation="true" turnAnimLimit="0.05" refNodeIndex="0" />
    </speedRotatingParts>

    <foldingParts startMoveDirection="1" turnOnFoldDirection="-1">
        <foldingPart animationName="foldPlough" speedScale="0.5" />
    </foldingParts>

    <animations>
        <animation name="moveSupport">
            <part node="0>0|2|0|1" startTime="0" duration="0.6" startRot="90 0 0" endRot="0 0 0" />
            <part node="1>0|4"     startTime="0" duration="0.6" startTrans="0 0.75733 -0.04816" endTrans="0 0.09105 -0.04816" />
            <part componentJointIndex="0" startTime="0" duration="0.6" startRotLimit="0 90 0" endRotLimit="0 0 0" />
        </animation>
        
        <animation name="lowerAnimation">
            <part node="0>0|0" startTime="0" endTime="2.0" startRot="-25 0 0" endRot="20 0 0"/>
        </animation>
        
        <animation name="foldPlough">
            <part node="0>0|2"                     startTime="0" endTime="2.0" startRot="0 -31 0"    endRot="0 0 0"/>
            <part node="0>0|2|0"                   startTime="0" endTime="2.0" startRot="0 31 0"     endRot="0 0 0"/>
            <part node="0>0|1|0"                   startTime="0" endTime="2.0" startRot="-29.28 0 0" endRot="0 0 0"/>
            <part node="0>0|1|0|0"                 startTime="0" endTime="2.0" startRot="29.28 0 0"  endRot="1 0 0"/>
            <part node="0>0|1|0|3|0|1|0|0|8|0|0|0" startTime="2" endTime="4.0" startRot="-25 0 0"    endRot="0 0 0"/>
            <part node="0>0|1"                     startTime="2" endTime="4.0" startRot="0 0 90"     endRot="0 0 0"/>
            <part node="0>0|1|0|0"                 startTime="2" endTime="4.0" startRot="1 0 0"      endRot="0 0 0"/>
            <part node="0>0|1|0|0|0"               startTime="2" endTime="4.0" startRot="0 0 -90"    endRot="0 0 0"/>
        </animation>
        
        <animation name="rotatePlough">
            <part node="0>0|2"                     startTime="0" endTime="2.0" startRot="0 -31 0"    endRot="0 0 0"/>
            <part node="0>0|2|0"                   startTime="0" endTime="2.0" startRot="0 31 0"     endRot="0 0 0"/>
            <part node="0>0|1|0"                   startTime="0" endTime="2.0" startRot="-29.28 0 0" endRot="0 0 0"/>
            <part node="0>0|1|0|0"                 startTime="0" endTime="2.0" startRot="29.28 0 0"  endRot="1 0 0"/>
            <part node="0>0|1|0|3|0|1|0|0|8|0|0|0" startTime="2" endTime="6"   startRot="-25 0 0"    endRot="25 0 0"/>
            <part node="0>0|1"                     startTime="2" endTime="6.0" startRot="0 0 90"     endRot="0 0 -90"/>
            <part node="0>0|1|0|0"                 startTime="2" endTime="6.0" startRot="1 0 0"      endRot="-1 0 0"/>
            <part node="0>0|1|0|0|0"               startTime="2" endTime="6.0" startRot="0 0 -90"    endRot="0 0 90"/>
            <part node="0>0|2"                     startTime="6" endTime="8.0" startRot="0 0 0"      endRot="0 31 0"/>
            <part node="0>0|2|0"                   startTime="6" endTime="8.0" startRot="0 0 0"      endRot="0 -31 0"/>
            <part node="0>0|1|0"                   startTime="6" endTime="8.0" startRot="0 0 0"      endRot="-29.28 0 0"/>
            <part node="0>0|1|0|0"                 startTime="6" endTime="8.0" startRot="1 0 0"      endRot="29.28 0 0"/>
        </animation>
    </animations>
    
    <movingTools>
        <movingTool index="0>0|0" wheelIndices="1" >
            <dependentPart index="0>0|0|1"/>
        </movingTool>
        
        <!-- attacherBarRot -->
        <movingTool index="0>0|1|0|0|0" >
            <dependentPart index="0>0|1|0|0|1"/>
            <dependentPart index="0>0|1|0|0|2"/>
        </movingTool>
        
        <movingTool index="0>0|2"   componentJointIndex="0" anchorActor="0" />
        <movingTool index="0>0|2|0" componentJointIndex="0" anchorActor="0" />
    
        <movingTool index="0>0|1|0">
            <dependentPart index="0>0|1|0|3|0"/>
        </movingTool>
    
    </movingTools>
    
    <movingParts>
        <movingPart index="0>0|0|1" referencePoint="0>0|3" referenceFrame="0>" >
            <translatingPart index="0>0|0|1|0" />
        </movingPart>
        
        <movingPart index="0>0|1|0|0|1" referencePoint="0>0|1|0|0|0|0" referenceFrame="0>0|1|0|0|3" >
            <translatingPart index="0>0|1|0|0|1|0" />
        </movingPart>
        <movingPart index="0>0|1|0|0|2" referencePoint="0>0|1|0|0|0|1" referenceFrame="0>0|1|0|0|3" >
            <translatingPart index="0>0|1|0|0|2|0" />
        </movingPart>
        
        <movingPart index="1>0|2" referencePoint="0>0|1|0|0|0|2" referenceFrame="1>" limitedAxis="2" isActiveDirty="true" playSound="false" >
            <dependentPart index="1>0|2|0" />
        </movingPart>
        <movingPart index="1>0|2|0" referencePoint="0>0|1|0|0|0|2" referenceFrame="1"  playSound="false">
            <translatingPart index="1>0|2|0|0" />
        </movingPart>
        
        <movingPart index="0>0|1|0|3|0" localReferencePoint="0>0|1|0|3|0|0" referencePoint="0>0|1|1" referenceFrame="0>0|1|0|4|1" >
            <dependentPart index="0>0|1|0|3|0|0" />
            <dependentPart index="0>0|1|0|3|2" />
            <dependentPart index="0>0|1|0|3|0|1" />
        </movingPart>
        <movingPart index="0>0|1|0|3|0|0" referencePoint="0>0|1|1" referenceFrame="0>0|1|0|3|0|3" />
        <movingPart index="0>0|1|0|3|2" referencePoint="0>0|1|0|3|0|2" referenceFrame="0>0|1|0|3|0|2" >
            <translatingPart index="0>0|1|0|3|2|0" />
        </movingPart>
        <movingPart index="0>0|1|0|3|0|1" localReferencePoint="0>0|1|0|3|0|1|0" referencePoint="0>0|1|0|3|1|4" referenceFrame="0>0|1|0|3|0|3" >
            <dependentPart index="0>0|1|0|3|0|1|0" />
            <dependentPart index="0>0|1|0|3|0|1|0|0" />
        </movingPart>
        <movingPart index="0>0|1|0|3|0|1|0" referencePoint="0>0|1|0|3|1|4" referenceFrame="0>0|1|0|3|1|4" />
        <movingPart index="0>0|1|0|3|0|1|0|0" localReferencePoint="0>0|1|0|3|0|1|0|0|0" referencePoint="0>0|1|0|3|1|0" referenceFrame="0>0|1|0|4|2" >
            <dependentPart index="0>0|1|0|3|0|1|0|0|0" />
            <dependentPart index="0>0|1|0|3|0|1|0|0|1" />
            <dependentPart index="0>0|1|0|3|0|1|0|0|2" />
            <dependentPart index="0>0|1|0|3|0|1|0|0|3" />
            <dependentPart index="0>0|1|0|3|0|1|0|0|4" />
            <dependentPart index="0>0|1|0|3|0|1|0|0|5" />
            <dependentPart index="0>0|1|0|3|0|1|0|0|6" />
            <dependentPart index="0>0|1|0|3|0|1|0|0|7" />
            <dependentPart index="0>0|1|0|3|0|1|0|0|8" />
        </movingPart>
        <movingPart index="0>0|1|0|3|0|1|0|0|0" referencePoint="0>0|1|0|3|1|0" referenceFrame="0>0|1|0|3|1|0" />
        <movingPart index="0>0|1|0|3|0|1|0|0|1" referencePoint="0>0|1|0|3|1|1" referenceFrame="0>0|1|0|3|1|1" />
        <movingPart index="0>0|1|0|3|0|1|0|0|2" referencePoint="0>0|1|0|3|1|2" referenceFrame="0>0|1|0|3|1|2" />
        <movingPart index="0>0|1|0|3|0|1|0|0|3" referencePoint="0>0|1|0|3|1|3" referenceFrame="0>0|1|0|3|1|3" />
        <movingPart index="0>0|1|0|3|0|1|0|0|4" referencePoint="0>0|1|0|3|1|5" referenceFrame="0>0|1|0|3|1|5" />
        <movingPart index="0>0|1|0|3|0|1|0|0|5" referencePoint="0>0|1|0|3|1|6" referenceFrame="0>0|1|0|3|1|6" />
        <movingPart index="0>0|1|0|3|0|1|0|0|6" referencePoint="0>0|1|0|3|1|7" referenceFrame="0>0|1|0|3|1|7" />
        <movingPart index="0>0|1|0|3|0|1|0|0|7" referencePoint="0>0|1|0|3|1|8" referenceFrame="0>0|1|0|3|1|8" />
        
        <movingPart index="0>0|1|0|3|0|1|0|0|8" localReferencePoint="0>0|1|0|3|0|1|0|0|8|0" referencePoint="0>0|1|0|4|0" referenceFrame="0>0|1|0|4|3" >
            <dependentPart index="0>0|1|0|3|0|1|0|0|8|0" />
        </movingPart>
        <movingPart index="0>0|1|0|3|0|1|0|0|8|0" referencePoint="0>0|1|0|4|0" referenceFrame="0>0|1|0|4|0" />
        
    </movingParts>

    <aiForceTurnNoBackward value="true" />
    <isDefaultLowered value="false"/>
    <needsLowering value="true" />
    <allowsLowering value="true" />
  
    <rotationPart turnAnimationName="rotatePlough" limitFoldRotationMax="true" foldRotationMinLimit="0" foldRotationMaxLimit="0" rotationFoldMinLimit="0" rotationFoldMaxLimit="0" foldMinLimit="0" foldMaxLimit="0.1"/>
    <support animationName="moveSupport" />
    <lowerAnimation name="lowerAnimation" speed="1" />

    <washable dirtDuration="30" washDuration="1" workMultiplier="20" />
    
    <driveGroundParticleSystems>
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
    </driveGroundParticleSystems>    

    <components count="2">
        <component1 centerOfMass="0 0.4 -3" solverIterationCount="10" />
        <component2 centerOfMass="0 0.4 0" solverIterationCount="10" />
        <joint component1="0" component2="1" index="0>0|2|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>