﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="sprayer_mouseControlled">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Amazone UF 1801</en>
        <de>Amazone UF 1801</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Sprayer</typeDesc>
    <filename>data/vehicles/tools/amazone/amazoneUF1801.i3d</filename>

    <size width="4" length="4" />

	<lightCoronas>
		<lightCorona index="0>5|2|0|6" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>5|2|0|7" />
	</brakeLights>

    <cuttingAreas count="9">
        <cuttingArea1 startIndex="0>2" widthIndex="0>3" heightIndex="0>4"/>
		<cuttingArea2 startIndex="0>5|2|0|1|0|3" widthIndex="0>5|2|0|1|0|4" heightIndex="0>5|2|0|1|0|5"/>
		<cuttingArea3 startIndex="0>5|2|0|1|0|0|0|2" widthIndex="0>5|2|0|1|0|0|0|3" heightIndex="0>5|2|0|1|0|0|0|4"/>
		<cuttingArea4 startIndex="0>5|2|0|1|0|0|0|0|2" widthIndex="0>5|2|0|1|0|0|0|0|3" heightIndex="0>5|2|0|1|0|0|0|0|4"/>
		<cuttingArea5 startIndex="0>5|2|0|1|0|0|0|0|0|1" widthIndex="0>5|2|0|1|0|0|0|0|0|2" heightIndex="0>5|2|0|1|0|0|0|0|0|3"/>
		<cuttingArea6 startIndex="0>5|2|0|0|0|3" widthIndex="0>5|2|0|0|0|4" heightIndex="0>5|2|0|0|0|5"/>
		<cuttingArea7 startIndex="0>5|2|0|0|0|0|0|2" widthIndex="0>5|2|0|0|0|0|0|3" heightIndex="0>5|2|0|0|0|0|0|4"/>
		<cuttingArea8 startIndex="0>5|2|0|0|0|0|0|0|2" widthIndex="0>5|2|0|0|0|0|0|0|3" heightIndex="0>5|2|0|0|0|0|0|0|4"/>
		<cuttingArea9 startIndex="0>5|2|0|0|0|0|0|0|0|1" widthIndex="0>5|2|0|0|0|0|0|0|0|2" heightIndex="0>5|2|0|0|0|0|0|0|0|3"/>
    </cuttingAreas>

    <attacherJoint index="0>0" jointType="implement" topReferenceNode="0>1" upperRotationOffset="8" lowerRotationOffset="0" lowerDistanceToGround="0.9" upperDistanceToGround="0.95" />

    <needsLowering value="false" />

    <foldingParts startMoveDirection="0" posDirectionText="unfold_OBJECT" negDirectionText="fold_OBJECT">
        <foldingPart componentJointIndex="0" anchorActor="0" animationName="rightFold"  speedScale="0.55" />
		<foldingPart componentJointIndex="4" anchorActor="0" animationName="leftFold"  speedScale="0.5" />
    </foldingParts>

    <sprayUsages>
        <sprayUsage fillType="fertilizer" litersPerSecond="4.8" />
    </sprayUsages>

    <fillTypes fillTypes="fertilizer"/>
    <capacity>1920</capacity>
	<fillLitersPerSecond>150</fillLitersPerSecond>

	<fillPlanes rotationDegrees="true">
        <fillPlane type="fertilizer">
            <node index="0>5|0" alwaysVisible="true">
                <key time="0" y="1.78628" rotation="0 0 0" />
                <key time="1" y="1.78628" rotation="0 0 90" />
            </node>
        </fillPlane>
    </fillPlanes>

    <spraySound file="data/vehicles/tools/sprayer.wav" pitchOffset="1" volume="1"/>
    <sprayParticleSystem file="data/vehicles/particleSystems/sprayParticleSystem.i3d" />
    <sprayValves>
		<!-- main -->
        <sprayValve index="0>5|2|0|10" />
        <sprayValve index="0>5|2|0|11" />
        <sprayValve index="0>5|2|0|12" />
        <sprayValve index="0>5|2|0|13" />
		<!-- right arm -->
        <sprayValve index="0>5|2|0|1|0|6" />
		<sprayValve index="0>5|2|0|1|0|7" />
		<sprayValve index="0>5|2|0|1|0|8" />
		<sprayValve index="0>5|2|0|1|0|9" />
		<sprayValve index="0>5|2|0|1|0|0|0|5" />
		<sprayValve index="0>5|2|0|1|0|0|0|6" />
		<sprayValve index="0>5|2|0|1|0|0|0|7" />
		<sprayValve index="0>5|2|0|1|0|0|0|8" />
		<sprayValve index="0>5|2|0|1|0|0|0|9" />
		<sprayValve index="0>5|2|0|1|0|0|0|0|5" />
		<sprayValve index="0>5|2|0|1|0|0|0|0|6" />
		<sprayValve index="0>5|2|0|1|0|0|0|0|7" />
		<sprayValve index="0>5|2|0|1|0|0|0|0|8" />
		<sprayValve index="0>5|2|0|1|0|0|0|0|0|4" />
		<sprayValve index="0>5|2|0|1|0|0|0|0|0|5" />
		<sprayValve index="0>5|2|0|1|0|0|0|0|0|6" />
		<sprayValve index="0>5|2|0|1|0|0|0|0|0|7" />
		<!-- left arm -->
		<sprayValve index="0>5|2|0|0|0|6" />
		<sprayValve index="0>5|2|0|0|0|7" />
		<sprayValve index="0>5|2|0|0|0|8" />
		<sprayValve index="0>5|2|0|0|0|9" />
		<sprayValve index="0>5|2|0|0|0|0|0|5" />
		<sprayValve index="0>5|2|0|0|0|0|0|6" />
		<sprayValve index="0>5|2|0|0|0|0|0|7" />
		<sprayValve index="0>5|2|0|0|0|0|0|8" />
		<sprayValve index="0>5|2|0|0|0|0|0|9" />
		<sprayValve index="0>5|2|0|0|0|0|0|0|5" />
		<sprayValve index="0>5|2|0|0|0|0|0|0|6" />
		<sprayValve index="0>5|2|0|0|0|0|0|0|7" />
		<sprayValve index="0>5|2|0|0|0|0|0|0|8" />
		<sprayValve index="0>5|2|0|0|0|0|0|0|0|4" />
		<sprayValve index="0>5|2|0|0|0|0|0|0|0|5" />
		<sprayValve index="0>5|2|0|0|0|0|0|0|0|6" />
		<sprayValve index="0>5|2|0|0|0|0|0|0|0|7" />
    </sprayValves>

	<cylinderedHydraulicSound file="data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />

    <mouseControls>
        <mouseControl iconFilename="dataS2/menu/mouseControlsHelp/amazoneUF1801.png" mouseButton="LEFT" mouseAxis="Y" axis="AXIS_FRONTLOADER_ARM" />
    </mouseControls>

    <movingTools>
		<!-- main arm -->
		<movingTool index="0>5|2|0" componentJointIndex="0 1 2 3 4 5 6 7" anchorActor="0" transSpeed="1" transAcceleration="20" transMax="0.9" transMin="0" translationAxis="2" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="true" speedFactor="0.3">
            <dependentPart index="0>5|1" />
        </movingTool>
        <!-- rightSide -->
        <movingTool index="0>5|2|0|1|0" componentJointIndex="0 1 2 3" anchorActor="0">
            <!-- lift cylinder -->
            <dependentPart index="0>5|2|0|2" />
        </movingTool>
		<movingTool index="0>5|2|0|1|0|0|0" componentJointIndex="1 2 3" anchorActor="0">
        </movingTool>
		<movingTool index="0>5|2|0|1|0|0|0|0" componentJointIndex="2 3" anchorActor="0">
        </movingTool>
		<movingTool index="0>5|2|0|1|0|0|0|0|0" componentJointIndex="3" anchorActor="0">
        </movingTool>
		<!-- leftSide -->
        <movingTool index="0>5|2|0|0|0" componentJointIndex="4 5 6 7" anchorActor="0">
            <!-- lift cylinder -->
            <dependentPart index="0>5|2|0|3" />
        </movingTool>
		<movingTool index="0>5|2|0|0|0|0|0" componentJointIndex="5 6 7" anchorActor="0">
        </movingTool>
		<movingTool index="0>5|2|0|0|0|0|0|0" componentJointIndex="6 7" anchorActor="0">
        </movingTool>
		<movingTool index="0>5|2|0|0|0|0|0|0|0" componentJointIndex="7" anchorActor="0">
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- right lift cylinder -->
        <movingPart index="0>5|2|0|2" referencePoint="0>5|2|0|1|0|1" referenceFrame="0>5|2|0|4" >
            <translatingPart index="0>5|2|0|2|0" />
        </movingPart>
		<!-- left lift cylinder -->
        <movingPart index="0>5|2|0|3" referencePoint="0>5|2|0|0|0|1" referenceFrame="0>5|2|0|4" >
            <translatingPart index="0>5|2|0|3|0" />
        </movingPart>
		<movingPart index="0>5|1" referencePoint="0>5|2|0|9" referenceFrame="0>5|2|0|9" scaleZ="true">
        </movingPart>
    </movingParts>

	<animations>
        <animation name="rightFold">
            <part node="0>5|2|0|1|0" startTime="0" endTime="3.0" startRot="0 0 -3" endRot="0 0 90"/>
			<part node="0>5|2|0|1|0|0|0" startTime="3" endTime="6.0" startRot="0 0 0" endRot="0 180 0"/>
			<part node="0>5|2|0|1|0|0|0|0" startTime="6" endTime="9.0" startRot="0 0 0" endRot="0 -180 0"/>
			<part node="0>5|2|0|1|0|0|0|0|0" startTime="9" endTime="12.0" startRot="0 0 0" endRot="0 180 0"/>
        </animation>
		<animation name="leftFold">
            <part node="0>5|2|0|0|0" startTime="0" endTime="3.0" startRot="0 0 0" endRot="0 0 -93"/>
			<part node="0>5|2|0|0|0|0|0" startTime="3" endTime="6.0" startRot="0 0 0" endRot="0 -180 0"/>
			<part node="0>5|2|0|0|0|0|0|0" startTime="6" endTime="9.0" startRot="0 0 0" endRot="0 180 0"/>
			<part node="0>5|2|0|0|0|0|0|0|0" startTime="9" endTime="12.0" startRot="0 0 0" endRot="0 -180 0"/>
        </animation>	
		<animation name="moveSupport">
			<part node="0>5|3" startTime="0" endTime="0.01" visibility="false" />
            <part node="0>5|3" startTime="0.01" endTime="0.02" visibility="true" />
        </animation>
    </animations>

	<support animationName="moveSupport" />

	<powerTakeoffInput index="0>6" rotSpeed="0"/>

	<components count="9">
        <component1 centerOfMass="0 0 0.5" solverIterationCount="30" />
		<component2 centerOfMass="0 0 0.2" solverIterationCount="25" />
		<component3 centerOfMass="0 0 0.2" solverIterationCount="20" />
		<component4 centerOfMass="0 0 0.2" solverIterationCount="20" />
		<component5 centerOfMass="0 0 0.2" solverIterationCount="20" />
		<component6 centerOfMass="0 0 0.2" solverIterationCount="25" />
		<component7 centerOfMass="0 0 0.2" solverIterationCount="20" />
		<component8 centerOfMass="0 0 0.2" solverIterationCount="20" />
		<component9 centerOfMass="0 0 0.2" solverIterationCount="20" />
		<joint component1="0" component2="1" index="0>5|2|0|1|0|2" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="2" index="0>5|2|0|1|0|0|0|1" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="3" index="0>5|2|0|1|0|0|0|0|1" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="4" index="0>5|2|0|1|0|0|0|0|0|0" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="5" index="0>5|2|0|0|0|2" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="6" index="0>5|2|0|0|0|0|0|1" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="7" index="0>5|2|0|0|0|0|0|0|1" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="8" index="0>5|2|0|0|0|0|0|0|0|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>
