﻿<?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>HORSCH Maestro 12 SW</en>
        <de>HORSCH Maestro 12 SW</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Seeder</typeDesc>
    <filename>horsch/horschMaestro12SW.i3d</filename>

    <size width="4.5" length="10" />

    <maxSpeedLevel value="2"/>
    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="0.89" deltaY="0.08" suspTravel="0.15" spring="250" damper="20" mass="0.4" lateralStiffness="30" />
        <wheel driveMode="0" repr="1" radius="0.89" deltaY="0.08" suspTravel="0.15" spring="250" damper="20" mass="0.4" lateralStiffness="30" />
    </wheels>

	<brakeForce>1</brakeForce>
	<downForce>4</downForce>

    <cuttingAreas count="1">
        <cuttingArea1 startIndex="1>1" widthIndex="1>2" heightIndex="1>3" />
    </cuttingAreas>

	<lightCoronas>
		<lightCorona index="1>7" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="1>8" />
	</brakeLights>

	<needsActivation value="true" />

    <fillTypes fillTypes="seeds"/>
    <capacity>2000</capacity>
    <startFillLevel>2000</startFillLevel>
	<fillLitersPerSecond>100</fillLitersPerSecond>

    <sowingSound file="$data/vehicles/tools/sowingSound.wav" pitchOffset="0.5" volume="0.3"/>
	<airBlowerSound file="$data/vehicles/tools/airBlowerLoop.wav" pitchOffset="1.2" volume="0.5"/>
	<cylinderedHydraulicSound file="$data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />

    <attacherJoint index="0>2" jointType="trailerLow" />

    <groundReferenceNodes>
        <groundReferenceNode index="1>" threshold="0.55" />
        <groundReferenceNode index="2>" threshold="0.55" />
        <groundReferenceNode index="3>" threshold="0.55" />
    </groundReferenceNodes>

	<speedRotatingParts>
		<speedRotatingPart index="1>0|0|0" radius="0.45" foldMinLimit="0" foldMaxLimit="0.05"/>
		<speedRotatingPart index="1>0|1|0" radius="0.45" foldMinLimit="0" foldMaxLimit="0.05"/>
    </speedRotatingParts>

    <groundParticleSystems>
        <groundParticleSystem position="-2.8 0 -1.5" rotation="0 0 0" file="$data/vehicles/particleSystems/fieldWorkParticleSystem.i3d" />
        <groundParticleSystem position="2.8 0 -1.5" rotation="0 0 0" file="$data/vehicles/particleSystems/fieldWorkParticleSystem.i3d" />
    </groundParticleSystems>

    <aiLeftMarker index="1>4" />
    <aiRightMarker index="1>5" />
    <aiBackMarker index="1>6" />
	<aiForceTurnNoBackward value="true" />
    <aiTrafficCollisionTrigger index="0>4" />

	<foldingParts startMoveDirection="1" foldMiddleAnimTime="0.15">
        <foldingPart animationName="folding"  speedScale="0.55" />
    </foldingParts>

	<seedFruitTypes seedFruitTypes="maize sugarBeet" />

    <ridgeMarker animationLeftName="leftArm" animationRightName="rightArm" onlyActiveWhenLowered="false" />
    <ridgeMarkerLeftArea startIndex="1>0|0|2|0|0|1" widthIndex="1>0|0|2|0|0|2" heightIndex="1>0|0|2|0|0|3"/>
    <ridgeMarkerRightArea startIndex="1>0|1|2|0|0|1" widthIndex="1>0|1|2|0|0|2" heightIndex="1>0|1|2|0|0|3"/>
    <ridgeMarkerLeftTestArea startIndex="1>0|0|2|0|0|4" widthIndex="1>0|0|2|0|0|5" heightIndex="1>0|0|2|0|0|6"/>
    <ridgeMarkerRightTestArea startIndex="1>0|1|2|0|0|4" widthIndex="1>0|1|2|0|0|5" heightIndex="1>0|1|2|0|0|6"/>

    <movingTools>
        <movingTool index="0>3|1" componentJointIndex="0" anchorActor="0"/>
		<movingTool index="0>3|1|0" componentJointIndex="0" anchorActor="0"/>

		<movingTool index="0>3|0" componentJointIndex="3" anchorActor="0"/>

		<movingTool index="1>0|0" componentJointIndex="1" anchorActor="0">
            <dependentPart index="1>0|2" />
			<dependentPart index="1>0|0|4" />
        </movingTool>
		<movingTool index="1>0|1" componentJointIndex="2" anchorActor="0">
            <dependentPart index="1>0|3" />
        </movingTool>

		<movingTool index="1>0|1|2|0">
            <dependentPart index="1>0|1|1" />
			<dependentPart index="1>0|1|2|1" />
			<dependentPart index="1>0|1|2|0|1|0" />
        </movingTool>
		<movingTool index="1>0|1|2">
            <dependentPart index="1>0|1|1" />
        </movingTool>

		<movingTool index="1>0|0|2|0">
            <dependentPart index="1>0|0|1" />
			<dependentPart index="1>0|0|2|1" />
			<dependentPart index="1>0|0|2|0|1|0" />
        </movingTool>
		<movingTool index="1>0|0|2">
            <dependentPart index="1>0|0|1" />
        </movingTool>
    </movingTools>

    <movingParts>
		<!-- middle arm -->
        <movingPart index="0>3|2" referencePoint="1>0" referenceFrame="0>" scaleZ="true" isActiveDirty="true" playSound="false" />
		<movingPart index="0>3|3" referencePoint="0>3|2|0" referenceFrame="0>" isActiveDirty="true" playSound="false">
			<translatingPart index="0>3|3|0" />
        </movingPart>

		<!-- left arm -->
        <movingPart index="1>0|0|4" referencePoint="1>0|7" referenceFrame="1>" scaleZ="true"/>
		<movingPart index="1>0|2" referencePoint="1>0|0|5" referenceFrame="1>">
			<translatingPart index="1>0|2|0" />
        </movingPart>

		<!-- right arm -->
        <movingPart index="1>0|1|4" referencePoint="1>0|7" referenceFrame="2>" scaleZ="true"/>
		<movingPart index="1>0|3" referencePoint="1>0|1|5" referenceFrame="2>">
			<translatingPart index="1>0|3|0" />
        </movingPart>

		<!-- right marker -->
		<movingPart index="1>0|1|2|0|1|0" referencePoint="1>0|1|2|0|0|0" referenceFrame="1>0|1|2|0|0" scaleZ="true"/>
		<movingPart index="1>0|1|2|1" referencePoint="1>0|1|2|0|1|1" referenceFrame="1>0|1|2|0" scaleZ="true"/>
		<movingPart index="1>0|1|1" referencePoint="1>0|1|2|0|2" referenceFrame="1>0|1">
			<translatingPart index="1>0|1|1|0" />
        </movingPart>

		<!-- left marker -->
		<movingPart index="1>0|0|2|0|1|0" referencePoint="1>0|0|2|0|0|0" referenceFrame="1>0|0|2|0|0" scaleZ="true"/>
		<movingPart index="1>0|0|2|1" referencePoint="1>0|0|2|0|1|1" referenceFrame="1>0|0|2|0" scaleZ="true"/>
		<movingPart index="1>0|0|1" referencePoint="1>0|0|2|0|2" referenceFrame="1>0|0">
			<translatingPart index="1>0|0|1|0" />
        </movingPart>
    </movingParts>

    <animations>
        <!-- move right arm-->
        <animation name="folding">
			<part componentJointIndex="0" startTime="0" endTime="1" startRotLimit="10 0 0" endRotLimit="0 0 0"/>
			<part componentJointIndex="0" startTime="0" endTime="1" startTransLimit="0 0.1 0" endTransLimit="0 0 0"/>
			<part node="0>3|1" startTime="0" endTime="1.5" startRot="0 0 0" endRot="25 0 0" />
			<part node="0>3|1|0" startTime="0" endTime="1.5" startRot="0 0 0" endRot="-25 0 0" />
			<!-- folding -->
            <part node="1>0|0" startTime="2" endTime="10" startRot="0 0 0" endRot="0 0 90" />
			<part node="1>0|1" startTime="2" endTime="10" startRot="0 0 0" endRot="0 0 -90" />

			<part node="1>0|0|2" startTime="2" endTime="7" startRot="0 0 0" endRot="0 0 90" />
			<part node="1>0|1|2" startTime="2" endTime="7" startRot="0 0 0" endRot="0 0 -90" />
        </animation>

		<animation name="leftArm">
            <part node="1>0|0|2|0" startTime="0" duration="3" startRot="0 0 90" endRot="0 0 0" />
			<part node="1>0|0|2|0|0" startTime="0" duration="3" startRot="0 0 -163" endRot="0 0 0" />
			<part node="1>0|0|2|0|1" startTime="0" duration="3" startRot="0 0 -101" endRot="0 0 0" />
        </animation>
		<animation name="rightArm">
            <part node="1>0|1|2|0" startTime="0" duration="3" startRot="0 0 -90" endRot="0 0 0" />
			<part node="1>0|1|2|0|0" startTime="0" duration="3" startRot="0 0 163" endRot="0 0 0" />
			<part node="1>0|1|2|0|1" startTime="0" duration="3" startRot="0 0 101" endRot="0 0 0" />
        </animation>

		<!-- move support arm down/up -->
        <animation name="moveSupport">
            <part node="0>3|0" startTime="0" duration="0.5" startTrans="0.00591 0.67431 3.23739" endTrans="0.00591 0.45045 3.23739" />
        </animation>
    </animations>

	<support animationName="moveSupport" />

    <components count="5">
        <component1 centerOfMass="0 0.2 1" solverIterationCount="20" />
		<component2 centerOfMass="0 0 0" solverIterationCount="20" />
		<component3 centerOfMass="0 0 0" solverIterationCount="20" />
		<component4 centerOfMass="0 0 0" solverIterationCount="20" />
		<component5 centerOfMass="0 0 0" solverIterationCount="20" />
		<joint component1="0" component2="1" index="0>3|1|0" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="1" component2="2" index="1>0|0" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="1" component2="3" index="1>0|1" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="4" index="0>3|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>