﻿<?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 660</en>
        <de>Grimme GL 660</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Planter</typeDesc>
    <filename>data/vehicles/tools/grimme/grimmeGL660.i3d</filename>

    <size width="7.5" length="6.5" lengthOffset="0.5"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" driveNode="0" radius="0.414" deltaY="0.27" suspTravel="0.35" spring="15" damper="20" mass="0.05" lateralStiffness="2" />
        <wheel driveMode="0" repr="1" driveNode="1" radius="0.414" deltaY="0.27" suspTravel="0.35" spring="15" damper="20" mass="0.05" lateralStiffness="2" />
    </wheels>
    <brakeForce>0.5</brakeForce>
	<downForce>4</downForce>

    <cuttingAreas count="1">
        <cuttingArea1 startIndex="0>2" widthIndex="0>3" heightIndex="0>4"/>
    </cuttingAreas>

    <fillPlanes>
        <fillPlane type="seeds">
            <node index="0>10|1|0">
				<key time="0"   translation="-0.007 -0.055 -0.025" scale="1 0 0.9"/>
				<key time="1"   translation="-0.007 0.227 -0.025" scale="1 1 1"/>
            </node>
			<node index="0>16|0">
				<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>3975</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="0>5" jointType="trailerLow" rotLimitScale="1.2 1.2 1.2"/>

	<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>16|0" 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" />

	<aiForceTurnNoBackward value="true" />

	<!-- to do -->
    <ridgeMarker animationLeftName="leftArm" animationRightName="rightArm" onlyActiveWhenLowered="false" />
    <ridgeMarkerLeftArea startIndex="0>12|0|0" widthIndex="0>12|0|1" heightIndex="0>12|0|2"/>
    <ridgeMarkerRightArea startIndex="0>13|0|0" widthIndex="0>13|0|1" heightIndex="0>13|0|2"/>
    <ridgeMarkerLeftTestArea startIndex="0>12|0|3" widthIndex="0>12|0|4" heightIndex="0>12|0|5"/>
    <ridgeMarkerRightTestArea startIndex="0>13|0|3" widthIndex="0>13|0|4" heightIndex="0>13|0|5"/>

    <movingTools>
		<!-- right arm -->
        <movingTool index="0>13">
			<dependentPart index="0>17" />
			<dependentPart index="0>18" />
        </movingTool>

		<!-- left arm -->
        <movingTool index="0>12">
			<dependentPart index="0>19" />
			<dependentPart index="0>20" />
        </movingTool>

        <!-- exportArmTop -->
        <movingTool index="0>10">
            <dependentPart index="0>11" /> <!-- exportArmHydraulics -->
        </movingTool>

        <!-- support -->
        <movingTool index="0>15" componentJointIndex="0" anchorActor="0"/>
    </movingTools>

    <movingParts>
        <!-- exportArmHydraulics -->
        <movingPart index="0>11" referencePoint="0>10|0" referenceFrame="0>11" invertZ="false">
            <translatingPart index="0>11|0" />
        </movingPart>

        <movingPart index="0>17" referencePoint="0>12|1" referenceFrame="0>17" invertZ="false" isActiveDirty="true">
            <translatingPart index="0>17|0" />
        </movingPart>

		<movingPart index="0>18" referencePoint="0>12|0|6" referenceFrame="0>18" scaleZ="true" invertZ="false" isActiveDirty="true"/>

		<movingPart index="0>19" referencePoint="0>13|1" referenceFrame="0>19" invertZ="false" isActiveDirty="true">
            <translatingPart index="0>19|0" />
        </movingPart>

		<movingPart index="0>20" referencePoint="0>13|0|6" referenceFrame="0>18" scaleZ="true" invertZ="false" isActiveDirty="true"/>
    </movingParts>

    <animations>
        <!-- move right arm-->
        <animation name="rightArm">
            <part node="0>13" startTime="0" duration="1.5" startRot="0 0 0" endRot="0 0 92" />
            <part node="0>13|0" startTime="0" duration="1.5" startRot="0 0 0" endRot="0 0 84" />
        </animation>

		<!-- move left arm-->
        <animation name="leftArm">
            <part node="0>12" startTime="0" duration="1.5" startRot="0 0 0" endRot="0 0 -92" />
            <part node="0>12|0" startTime="0" duration="1.5" startRot="0 0 0" endRot="0 0 -84" />
        </animation>

        <animation name="turnOn">
            <part node="0>10" startTime="0" duration="1.5" startRot="0 0 0" endRot="20 0 0" />
			<part node="0>21" startTime="0" endTime="1.5" startRot="0 0 0" endRot="-11 0 0" />
        </animation>

        <animation name="moveSupport">
           <part node="0>15" startTime="0" endTime="0.1" startTrans="0 0.872 1.508" endTrans="0 0.506 1.508" />
        </animation>

		<animation name="folding">
			<part node="0>21" startTime="0" endTime="1.5" startRot="0 0 0" endRot="11 0 0" />
		</animation>

    </animations>

    <components count="2">
        <component1 centerOfMass="0 0.05 0.1" solverIterationCount="8" />
        <component2 solverIterationCount="8" />
        <joint component1="0" component2="1" index="0>15|0" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>

    <schemaOverlay file="data/vehicles/schemas/implementSchema.png" fileSelected="data/vehicles/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>