﻿<?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>Amazone Cayena 6001</en>
        <de>Amazone Cayena 6001</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Seeder</typeDesc>
    <filename>data/vehicles/tools/amazone/amazoneCayena6001.i3d</filename>

    <size width="5" length="8.5"/>

    <maxSpeedLevel value="2"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="0.38" deltaY="0.25" suspTravel="0.3" spring="150" damper="20" mass="0.4" longitudalStiffness="5" lateralStiffness="1" />
        <wheel driveMode="0" repr="5>0" radius="0.40" deltaY="0.25" suspTravel="0.3" spring="150" damper="20" mass="0.4" />
		<wheel driveMode="0" repr="5>1" radius="0.40" deltaY="0.25" suspTravel="0.3" spring="150" damper="20" mass="0.4" />
		<wheel driveMode="0" repr="1>0" radius="0.40" deltaY="0.25" suspTravel="0.3" spring="150" damper="20" mass="0.4" longitudalStiffness="5" lateralStiffness="1" />
		<wheel driveMode="0" repr="1>1" radius="0.40" deltaY="0.25" suspTravel="0.3" spring="150" damper="20" mass="0.4" longitudalStiffness="5" lateralStiffness="0.2" />
		<wheel driveMode="0" repr="2>0" radius="0.40" deltaY="0.25" suspTravel="0.3" spring="150" damper="20" mass="0.4" longitudalStiffness="5" lateralStiffness="1" />
		<wheel driveMode="0" repr="2>1" radius="0.40" deltaY="0.25" suspTravel="0.3" spring="150" damper="20" mass="0.4" longitudalStiffness="5" lateralStiffness="0.2" />
    </wheels>

    <brakeForce>0.5</brakeForce>

    <cuttingAreas count="2">
        <cuttingArea1 startIndex="0>3|0" widthIndex="0>3|1" heightIndex="0>3|2" foldMinLimit="0" foldMaxLimit="0.1" />
        <cuttingArea2 startIndex="0>4|0" widthIndex="0>4|1" heightIndex="0>4|2" foldMinLimit="0" foldMaxLimit="0.1" />
    </cuttingAreas>

    <foldingParts startMoveDirection="1">
        <foldingPart componentJointIndex="0" anchorActor="0" animationName="leftArm" speedScale="0.95" />
        <foldingPart componentJointIndex="1" anchorActor="0" animationName="rightArm" speedScale="0.9" />
    </foldingParts>

    <groundParticleSystems>
        <groundParticleSystem position="-2.8 0 -0.5" rotation="0 0 0" file="data/vehicles/particleSystems/fieldWorkParticleSystem.i3d" />
        <groundParticleSystem position="2.8 0 -0.5" rotation="0 0 0" file="data/vehicles/particleSystems/fieldWorkParticleSystem.i3d" />
    </groundParticleSystems>

	<lightCoronas>
		<lightCorona index="0>2|6" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>2|7" />
	</brakeLights>

    <needsActivation value="true" />

    <fillTypes fillTypes="seeds"/>
    <capacity>3600</capacity>
	<fillLitersPerSecond>200</fillLitersPerSecond>

    <sowingSound file="data/vehicles/tools/sowingSound.wav" pitchOffset="1" volume="1"/>
    <airBlowerSound file="data/vehicles/tools/airBlowerLoop.wav" pitchOffset="1.2" volume="1"/>
	<cylinderedHydraulicSound file="data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />

    <attacherJoint rootNode="3>" index="3>0" jointType="implement" rotLimitScale="1 1 1" transLimitScale="1 1 1" allowsJointTransLimitMovement="true" allowsJointRotLimitMovement="false" />

    <isDefaultLowered value="false"/>
    <needsLowering value="true" />
    <allowsLowering value="true" />
	<useDirectPlanting>true</useDirectPlanting>

	<seedFruitTypes seedFruitTypes="wheat barley rape grass" />

    <groundReferenceNodes>
        <groundReferenceNode index="0>" threshold="0.1" />
        <groundReferenceNode index="1>" threshold="0.7" />
        <groundReferenceNode index="2>" threshold="0.7" />
    </groundReferenceNodes>

    <aiLeftMarker index="0>6" />
    <aiRightMarker index="0>7" />
    <aiBackMarker index="0>8" />

    <aiForceTurnNoBackward value="true" />
    <aiTrafficCollisionTrigger index="0>9" />

    <ridgeMarker animationLeftName="leftArmMarker" animationRightName="rightArmMarker" />
    <ridgeMarkerLeftArea startIndex="0>4|6|0|0|0" widthIndex="0>4|6|0|0|1" heightIndex="0>4|6|0|0|2"/>
    <ridgeMarkerRightArea startIndex="0>3|6|0|0|0" widthIndex="0>3|6|0|0|1" heightIndex="0>3|6|0|0|2"/>
    <ridgeMarkerLeftTestArea startIndex="0>4|6|0|0|3" widthIndex="0>4|6|0|0|4" heightIndex="0>4|6|0|0|5"/>
    <ridgeMarkerRightTestArea startIndex="0>3|6|0|0|3" widthIndex="0>3|6|0|0|4" heightIndex="0>3|6|0|0|5"/>

	<skinnedNodes>
		<skinnedNode index="0>10" />
		<skinnedNode index="0>11" />
    </skinnedNodes>	

    <animations>
		<animation name="leftArm">
			<part node="0>4" startTime="0" duration="4" startRot="0 0 0" endRot="0 0 90" />
			<!-- left arm joints -->
			<part node="0>5|0|0" startTime="0" endTime="4" startRot="0 0 0" endRot="0 0 90" />
			<part node="0>5|0|0|0" startTime="0" endTime="1" startTrans="0.992 -0.12 0.039" endTrans="0.946 -0.05 0.039" />
			<part node="0>5|0|0|0" startTime="1" endTime="2" startTrans="0.946 -0.05 0.039" endTrans="0.927 0.041 0.039" />
			<part node="0>5|0|0|0" startTime="2" endTime="3" startTrans="0.927 0.041 0.039" endTrans="0.946 0.132 0.039" />
			<part node="0>5|0|0|0" startTime="3" endTime="4" startTrans="0.946 0.132 0.039" endTrans="0.999 0.209 0.039" />
        </animation>
		<animation name="rightArm">
			<part node="0>3" startTime="0.3" duration="4.5" startRot="0 0 0" endRot="0 0 -90" />
			<!-- right arm joints -->
			<part node="0>5|1|0" startTime="0.3" endTime="4.8" startRot="0 0 0" endRot="0 0 -90" />
			<part node="0>5|1|0|0" startTime="0.3" endTime="1.425" startTrans="-0.992 -0.12 0.039" endTrans="-0.945 -0.055 0.039" />
			<part node="0>5|1|0|0" startTime="1.425" endTime="2.55" startTrans="-0.945 -0.055 0.039" endTrans="-0.924 0.032 0.039" />
			<part node="0>5|1|0|0" startTime="2.55" endTime="3.675" startTrans="-0.924 0.032 0.039" endTrans="-0.938 0.12 0.039" />
			<part node="0>5|1|0|0" startTime="3.675" endTime="4.8" startTrans="-0.938 0.12 0.039" endTrans="-0.985 0.195 0.039" />
        </animation>
        <!-- move right arm-->
        <animation name="rightArmMarker">
            <part node="0>3|6|0" startTime="0" duration="1.5" startRot="0 0 0" endRot="5.5 90 0" />
        </animation>
		<!-- move left arm-->
        <animation name="leftArmMarker">
            <part node="0>4|6|0" startTime="0" duration="1.5" startRot="0 0 0" endRot="5.5 -90 0" />
        </animation>
		<!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>2|4" startTime="0" duration="0.5" startRot="0 0 -180" endRot="0 0 0" />
            <part node="0>1" startTime="0" duration="0.5" startTrans="-0.181 0.376 2.176" endTrans="-0.181 0 2.176" />
        </animation>

		<animation name="lowerAnimation">
            <part node="0>2|1" startTime="0" duration="2" startRot="37 0 0" endRot="0 0 0" />
        </animation>
    </animations>

    <movingTools>
		<!-- right arm marker-->
        <movingTool index="0>3|6|0">
            <!-- hydraulic -->
            <dependentPart index="0>3|7" />
        </movingTool>

		<!-- left arm marker -->
        <movingTool index="0>4|6|0">
            <!-- hydraulic -->
            <dependentPart index="0>4|7" />
        </movingTool>

		<!-- main hydraulic-->
        <movingTool index="0>4">
            <!-- hydraulic -->
            <dependentPart index="0>3|3" />
        </movingTool>
        <movingTool index="0>3">
            <!-- hydraulic -->
            <dependentPart index="0>3|3" />
        </movingTool>
		<!-- support -->
        <movingTool index="0>1" componentJointIndex="3" anchorActor="0"/>
		<!-- wheel mover -->
		<movingTool index="0>2|1" componentJointIndex="4" anchorActor="0">
			<!-- hydraulic -->
            <dependentPart index="0>2|0" />
        </movingTool>
    </movingTools>

    <movingParts>
		<!-- main hydraulic -->
        <movingPart index="0>3|3" referencePoint="0>4|3" referenceFrame="0>" invertZ="false">
            <translatingPart index="0>3|3|0" />
        </movingPart>

		<!-- right hydraulic marker -->
        <movingPart index="0>3|7" referencePoint="0>3|6|0|1" referenceFrame="0>" invertZ="false">
            <translatingPart index="0>3|7|0" />
        </movingPart>

		<!-- left hydraulic marker -->
        <movingPart index="0>4|7" referencePoint="0>4|6|0|1" referenceFrame="0>" invertZ="false">
            <translatingPart index="0>4|7|0" />
        </movingPart>
		<!-- wheel mover -->
		<movingPart index="0>2|0" referencePoint="0>2|1|0" referenceFrame="0>" invertZ="false">
            <translatingPart index="0>2|0|0" />
        </movingPart>
    </movingParts>

	<support animationName="moveSupport" />

	<lowerAnimation name="lowerAnimation" speed="1" />

    <components count="6">
        <component1 centerOfMass="0 0 -1" solverIterationCount="20" />
        <component2 centerOfMass="2.23 -0.4 -0.45" solverIterationCount="20" />
        <component3 centerOfMass="-2.23 -0.4 -0.45" solverIterationCount="20" />
        <component4 solverIterationCount="20" />
		<component5 solverIterationCount="20" />
		<component6 centerOfMass="0 0 0" solverIterationCount="20" />
        <joint component1="0" component2="1" index="0>3" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="2" index="0>4" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="3" index="3>1" rotLimit="0 75 0" transLimit="0 0 0" />
		<joint component1="0" component2="4" index="0>1" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="5" index="0>2|1" 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>