﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="sowingMachine_animated">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Grimme GL 420</en>
        <de>Grimme GL 420</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Planter</typeDesc>
    <filename>data/vehicles/tools/grimme/grimmeGL420.i3d</filename>

    <size width="5" length="5"/>

    <cuttingAreas count="1">
        <cuttingArea1 startIndex="0>2" widthIndex="0>3" heightIndex="0>4"/>
    </cuttingAreas>

    <fillPlanes>
        <fillPlane type="seeds">
            <node index="0>10|1">
				<key time="0"   translation="0 -0.00496 -0.67431" scale="1 0.1 0.8"/>
				<key time="1"   translation="0 0.48165 -0.73971" scale="1 1 1"/>
            </node>
            <node index="0>17">
				<key time="0" scale="1 1 1"/>
				<key time="1" scale="1 1 1"/>
            </node>
        </fillPlane>
    </fillPlanes>

	<needsActivation value="true" />

    <fillTypes fillTypes="seeds potato"/>
    <capacity>2650</capacity>
	<fillLitersPerSecond>90</fillLitersPerSecond>

    <turnOnAnimation name="turnOn" speed="1" />

    <support animationName="moveSupport" />

	<seedFruitTypes seedFruitTypes="potato" />

    <sowingSound file="data/vehicles/tools/sowingSound.wav" pitchOffset="0.5" volume="0.3"/>

    <attacherJoint index="5" jointType="implement" fixedRotation="false" topReferenceNode="6"/>

	<speedRotatingParts>
        <speedRotatingPart index="0>0" radius="0.39"/>
		<speedRotatingPart index="0>1" radius="0.39"/>
    </speedRotatingParts>

    <turnedOnRotationNodes>
        <turnedOnRotationNode index="0>14" rotSpeed="82" rotAxis="1" />
    </turnedOnRotationNodes>

    <turnedOnScrollers>
        <turnedOnScroller index="0>16" shaderParameterName="scrollPosition" scrollSpeed="0.25" shaderParameterComponent="1" scrollLength="0.166" />
		<turnedOnScroller index="0>17" shaderParameterName="scrollPosition" scrollSpeed="0.25" shaderParameterComponent="1" scrollLength="0.166" />
    </turnedOnScrollers>

    <groundReferenceNodes>
        <groundReferenceNode index="0>" threshold="0.15" />
    </groundReferenceNodes>

	<groundParticleSystems>
        <groundParticleSystem position="0 0 -0.5" rotation="0 0 0" file="data/vehicles/particleSystems/fieldWorkParticleSystem.i3d" />
        <groundParticleSystem position="-1.5 0 -0.5" rotation="0 0 0" file="data/vehicles/particleSystems/fieldWorkParticleSystem.i3d" />
        <groundParticleSystem position="1.5 0 -0.5" rotation="0 0 0" file="data/vehicles/particleSystems/fieldWorkParticleSystem.i3d" />
    </groundParticleSystems>

    <aiLeftMarker index="0>7" />
    <aiRightMarker index="0>8" />
    <aiBackMarker index="0>9" />

	<!-- to do -->
    <ridgeMarker animationLeftName="leftArm" animationRightName="rightArm" />
    <ridgeMarkerLeftArea startIndex="0>12|0" widthIndex="0>12|1" heightIndex="0>12|2"/>
    <ridgeMarkerRightArea startIndex="0>13|0" widthIndex="0>13|1" heightIndex="0>13|2"/>
    <ridgeMarkerLeftTestArea startIndex="0>12|3" widthIndex="0>12|4" heightIndex="0>12|5"/>
    <ridgeMarkerRightTestArea startIndex="0>13|3" widthIndex="0>13|4" heightIndex="0>13|5"/>

    <movingTools>
		<!-- right arm -->
        <movingTool index="0>13"/>

		<!-- left arm -->
        <movingTool index="0>12"/>

        <!-- exportArmTop -->
        <movingTool index="0>10">
            <dependentPart index="0>11" /> <!-- exportArmHydraulics -->
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- exportArmHydraulics -->
        <movingPart index="0>11" referencePoint="0>10|0" referenceFrame="0>11" invertZ="true">
            <translatingPart index="0>11|0" />
        </movingPart>
    </movingParts>

    <animations>
        <!-- move right arm-->
        <animation name="rightArm">
            <part node="0>13" startTime="0" duration="1.5" startRot="0 0 0" endRot="0 0 112" />
        </animation>
		<!-- move left arm-->
        <animation name="leftArm">
            <part node="0>12" startTime="0" duration="1.5" startRot="0 0 0" endRot="0 0 -112" />
        </animation>

        <animation name="turnOn">
            <part node="0>10" startTime="0" duration="1.5" startRot="0 0 0" endRot="20 0 0" />
        </animation>

        <animation name="moveSupport">
			<part node="0>15" startTime="0" endTime="0.05" startRot="90 0 0" endRot="0 0 0" />
        </animation>
    </animations>

    <components count="1">
        <component1 centerOfMass="0 0.2 0.8" solverIterationCount="4" />
    </components>

    <schemaOverlay file="data/vehicles/schemas/implementSchema.png" fileSelected="data/vehicles/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>