﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tedder">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Poettinger EUROHIT 690 N</en>
        <de>Pöttinger EUROHIT 690 N</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Tedder</typeDesc>
    <filename>data/vehicles/tools/poettinger/poettingerEurohit690N.i3d</filename>

    <size width="5.5" length="3" lengthOffset="-0.8"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="8" radius="0.238" deltaY="0.25" suspTravel="0.25" spring="100" damper="10" mass="0.4" lateralStiffness="0.5" />
        <wheel driveMode="0" repr="9" radius="0.238" deltaY="0.25" suspTravel="0.25" spring="100" damper="10" mass="0.4" lateralStiffness="0.5" />
    </wheels>

	<powerTakeoffInput index="0>15" rotSpeed="0" />

    <cuttingAreas count="3">
        <cuttingArea1 startIndex="0" widthIndex="1" heightIndex="2" foldMinLimit="0" foldMaxLimit="1" particleSystemIndex="0"/>
        <cuttingArea2 startIndex="11|1" widthIndex="11|2" heightIndex="11|3" foldMinLimit="0" foldMaxLimit="0.2" particleSystemIndex="1"/>
        <cuttingArea3 startIndex="13|1" widthIndex="13|2" heightIndex="13|3" foldMinLimit="0" foldMaxLimit="0.2" particleSystemIndex="2"/>
    </cuttingAreas>

    <grassParticleSystems>
        <grassParticleSystem position="0 0.44889 -1.23691" rotation="0 0 0" file="data/vehicles/particleSystems/tedderParticleSystem.i3d" />
        <grassParticleSystem position="-2.32769 0.44889 -1.23691" rotation="0 0 0" file="data/vehicles/particleSystems/tedderParticleSystem.i3d" />
        <grassParticleSystem position="2.32769 0.44889 -1.23691" rotation="0 0 0" file="data/vehicles/particleSystems/tedderParticleSystem.i3d" />
    </grassParticleSystems>

    <tedderDropAreas count="3">
        <tedderDropArea1 startIndex="3" widthIndex="4" heightIndex="5"/>
        <tedderDropArea2 startIndex="11|4" widthIndex="11|5" heightIndex="11|6"/>
        <tedderDropArea3 startIndex="13|4" widthIndex="13|5" heightIndex="13|6"/>
    </tedderDropAreas>

    <attacherJoint index="4>0|3" rootNode="4>" jointType="implement" topReferenceNode="4>0|4" upperRotationOffset="0" rotLimitScale="0.05 0.05 0.05" lowerDistanceToGround="0.78" upperDistanceToGround="1.0" />

	<groundReferenceNode index="0>" threshold="0.1" />

    <tedderSound file="data/vehicles/tools/tedder.wav" pitchOffset="1" volume="1.4"/>

    <support animationName="moveSupport" />

    <foldingParts startMoveDirection="1">
        <foldingPart animationName="rightFold" speedScale="0.55" />
		<foldingPart animationName="leftFold" speedScale="0.5" />
    </foldingParts>

	<animations>
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="4>0|0" startTime="0" duration="0.2" startTrans="0.0009 -0.77583 -0.09683" endTrans="0.0009 -1.2851 -0.09683" />
        </animation>

		<animation name="rightFold">
			<part node="0>11|9" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -30" />
			<part node="0>11" startTime="1" endTime="3" startRot="0 0 0" endRot="0 0 -90" />
        </animation>

		<animation name="leftFold">
			<part node="0>13|9" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 30" />
			<part node="0>13" startTime="1" endTime="3" startRot="0 0 0" endRot="0 0 90" />
        </animation>

		<animation name="lowerAnimation">
            <part startTime="0" endTime="1.5" componentJointIndex="3" startRotLimit="0 0 0" endRotLimit="0 11 0" />
        </animation>
    </animations>

	<movingTools>
        <!-- support -->
        <movingTool index="4>0|0" componentJointIndex="2" anchorActor="0"/>
		<!-- arm right-->
        <movingTool index="0>11" componentJointIndex="0" anchorActor="0">
			<dependentPart index="0>12" />
		</movingTool>
		<movingTool index="0>11|9">
			<dependentPart index="0>12" />
		</movingTool>
		<!-- arm left-->
        <movingTool index="0>13" componentJointIndex="1" anchorActor="0">
			<dependentPart index="0>14" />
		</movingTool>
		<movingTool index="0>13|9">
			<dependentPart index="0>14" />
		</movingTool>
	</movingTools>

	<movingParts>
		<!-- hydraulic -->
		<movingPart index="0>12" referencePoint="0>11|9|2" referenceFrame="0>11" playSound="false">
            <translatingPart index="0>12|0" />
        </movingPart>
		<movingPart index="0>14" referencePoint="0>13|9|2" referenceFrame="0>13" playSound="false">
            <translatingPart index="0>14|0" />
        </movingPart>
		<movingPart index="4>0|1" referencePoint="0>10|2" referenceFrame="0>" isActiveDirty="true" playSound="false">
			<translatingPart index="4>0|1|0" />
        </movingPart>
		<movingPart index="4>0|2" referencePoint="0>10|3" referenceFrame="0>" isActiveDirty="true" playSound="false">
			<translatingPart index="4>0|2|0" />
        </movingPart>
    </movingParts>

    <speedRotatingParts>
        <speedRotatingPart index="11|7" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
        <speedRotatingPart index="11|9|1" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
        <speedRotatingPart index="13|7" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
        <speedRotatingPart index="13|9|1" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
    </speedRotatingParts>

    <rotors>
        <rotor index="10|0" direction="-1" />
        <rotor index="10|1" direction="1" />
        <rotor index="11|8" direction="1" />
        <rotor index="11|9|0" direction="-1" />
        <rotor index="13|8" direction="-1" />
        <rotor index="13|9|0" direction="1" />
    </rotors>

	<lowerAnimation name="lowerAnimation" />

    <components count="5">
        <component1 centerOfMass="0 0 -0.7" solverIterationCount="25" />
        <component2 centerOfMass="0 -0.6 0" solverIterationCount="25" />
        <component3 centerOfMass="0 -0.6 0" solverIterationCount="25" />
        <component4 centerOfMass="0 0 0" solverIterationCount="25" />
		<component5 centerOfMass="0 0 0" solverIterationCount="20" />
        <joint component1="0" component2="1" index="0>11|0" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="2" index="0>13|0" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="4" component2="3" index="4>0|0|0" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="4" index="0>6" 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>
