﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="plough">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Kuhn VariMaster 153</en>
        <de>Kuhn VariMaster 153</de>
    </name>
    <typeDesc>$l10n_TypeDesc_Plough</typeDesc>
    <filename>data/vehicles/tools/kuhn/kuhnVariMaster153.i3d</filename>

    <size width="3" length="5" widthOffset="1.5" lenghtOffset="-2.5"/>

    <speedLimit value="17" />

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0|1" linkNode="0>2|0|0|0|1|0|0" filename="$data/vehicles/wheels/trelleborg/trelleborgAW305_340_55_16.i3d" />
    </dynamicallyLoadedParts>

    <workAreas>
        <workArea startIndex="0>2|0|0|0|5" widthIndex="0>2|0|0|0|6" heightIndex="0>2|0|0|0|7" refNodeIndex="0" type="plough" />
    </workAreas>

    <groundReferenceNodes>
        <groundReferenceNode index="0>2|0|0|0|4" threshold="1" />
        <groundReferenceNode index="0>2|0|0|0|12" threshold="0.2" depthNode="0>2|0|0|0|12"/>
        <groundReferenceNode index="0>2|0|0|0|14" threshold="0.2" depthNode="0>2|0|0|0|14"/>
    </groundReferenceNodes>

    <powerConsumer neededPtoPower="0" forceNode="0>" maxForce="30" />

    <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/kuhn/kuhnVariMaster153.i3d" >
            <node index="0>2|0|0|0|11" animMeshIndex="0|0|0" refNodeIndex="1" />
            <node index="0>2|0|0|0|13" animMeshIndex="1|0|0" refNodeIndex="2" />
        </groundParticleAnimation>

        <groundParticle file="$data/vehicles/particleAnimations/kuhn/kuhnVariMaster153.i3d" >
            <node index="0>2|0|0|0|11" particleIndex="0|1" refNodeIndex="1" />
            <node index="0>2|0|0|0|13" particleIndex="1|1" refNodeIndex="2" />
        </groundParticle>
    </groundParticleAnimations>

    <aiLeftMarker index="0>2|0|0|0|8" />
    <aiRightMarker index="0>2|0|0|0|9" />
    <aiBackMarker index="0>2|0|0|0|10" />

    <inputAttacherJoints>
        <inputAttacherJoint index="0>0" jointType="implement" topReferenceNode="0>1" />
    </inputAttacherJoints>

    <speedRotatingParts>
        <speedRotatingPart index="0>2|0|0|0|2|0"   radius="0.2384" invertDirectionOnRotation="true" turnAnimLimit="0.05" turnAnimLimitSide="-1" refNodeIndex="0" />
        <speedRotatingPart index="0>2|0|0|0|2|1"   radius="0.2384" invertDirectionOnRotation="true" turnAnimLimit="0.05" turnAnimLimitSide="1"  refNodeIndex="0" />
        <speedRotatingPart index="0>2|0|0|0|1|0|0" radius="0.3311" invertDirectionOnRotation="true" turnAnimLimit="0.05" turnAnimLimitSide="1"  refNodeIndex="0" />
        <speedRotatingPart index="0>2|0|0|0|1|0|0" radius="0.3311" invertDirectionOnRotation="true" turnAnimLimit="0.05" turnAnimLimitSide="-1" refNodeIndex="0" />
    </speedRotatingParts>

    <animations>
        <!-- move wheel down/up -->
        <animation name="rotatePlough">
            <part node="0>2|0|0|0|1|0" startTime="0" endTime="0.4" startRot="0 0 0" endRot="-27.5 0 0" />
            <part node="0>2|0|0|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 12.5 0" />

            <!-- plough rot -->
            <part node="0>2|0"     startTime="1.5" endTime="4" startRot="0 0 0" endRot="0 0 -90" />
            <part node="0>2|0"     startTime="4.5" endTime="7" startRot="0 0 -90" endRot="0 0 -180" />

            <part node="0>2|0|0|0|3" startTime="4" endTime="4" startRot="0 170.26799 0" endRot="0 -170.26799 180" />

            <!-- wheel rot -->
            <part node="0>2|0|0|0|1|0"   direction="1"  startTime="4.5" endTime="7" startRot="-27.5 0 0" endRot="91.5 0 0" />
            <part node="0>2|0|0|0|1|0"   direction="-1" startTime="1.5" endTime="4" startRot="-27.5 0 0" endRot="91.5 0 0" />
            <part node="0>2|0|0|0|1|0|2"                startTime="4.5" endTime="7" startRot="0 0 0"     endRot="32 0 0" />

            <part node="0>2|0|0|0|1|3" direction="1"  startTime="3" endTime="4" startRot="7.35 0 0" endRot="27.9 0 0" />
            <part node="0>2|0|0|0|1|3" direction="-1" startTime="1" endTime="2" startRot="7.35 0 0" endRot="27.9 0 0" />

            <!-- ready -->
            <part node="0>2|0|0|0|1|2" direction="1"  startTime="6" endTime="7" startRot="-27.9 0 0" endRot="-7.35 0 0" />
            <part node="0>2|0|0|0|1|2" direction="-1" startTime="2" endTime="3" startRot="-27.9 0 0" endRot="-7.35 0 0" />

            <part node="0>2|0|0|0"     startTime="7.5" endTime="8.5" startRot="0 12.5 0" endRot="0 0 0" />
            <part node="0>2|0|0|0|1|0" startTime="8.1" endTime="8.5" startRot="91.5 0 0" endRot="64 0 0" />
        </animation>

        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>2|0|0|0|3|0" startTime="0" endTime="0.3" startRot="0 0 0" endRot="90 0 0" />
        </animation>
    </animations>

    <movingTools>
        <movingTool index="0>2|0" >
            <dependentPart index="0>2|1" />
        </movingTool>
        <movingTool index="0>2|0|0|0|1|0" >
            <dependentPart index="0>2|0|0|0|1|1" />
        </movingTool>

        <movingTool index="0>2|0|0|0" >
            <dependentPart index="0>2|0|2" />
            <dependentPart index="0>2|0|3" />
            <dependentPart index="0>2|0|4" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>2|1" referencePoint="0>2|0|1" referenceFrame="0>2|2" >
            <translatingPart index="0>2|1|0" />
        </movingPart>
        <movingPart index="0>2|0|0|0|1|1" referencePoint="0>2|0|0|0|1|0|1" referenceFrame="0>2|0|0|0|1" >
            <translatingPart index="0>2|0|0|0|1|1|0" />
        </movingPart>

        <movingPart index="0>2|0|2" localReferreferencePoint="0>2|0|2|0" referencePoint="0>2|0|0|0|0" referenceFrame="0>2|0|0|0|0" >
            <dependentPart index="0>2|0|2|0" />
        </movingPart>
        <movingPart index="0>2|0|2|0" referencePoint="0>2|0|0|0|0" referenceFrame="0>2|0|0|0|0" scaleZ="true" />
        <movingPart index="0>2|0|3" referencePoint="0>2|0|0|0|0" referenceFrame="0>2|0|0|0|0" >
            <translatingPart index="0>2|0|3|0" />
        </movingPart>
        <movingPart index="0>2|0|4" referencePoint="0>2|0|0|0|0" referenceFrame="0>2|0|0|0|0" >
            <translatingPart index="0>2|0|4|0" />
        </movingPart>
    </movingParts>

    <isDefaultLowered value="false"/>
    <needsLowering value="true" />
    <allowsLowering value="true" />
    <support animationName="moveSupport" />
    <rotationPart turnAnimationName="rotatePlough" />

    <washable dirtDuration="30" washDuration="1" workMultiplier="20" />

    <components count="1">
        <component1 centerOfMass="0 0.6 -1.35" solverIterationCount="10" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>
</vehicle>