﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tedder">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Kuhn GF 17002</en>
        <de>Kuhn GF 17002</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Tedder</typeDesc>
    <filename>data/vehicles/tools/kuhn/kuhnGF17002.i3d</filename>

    <size width="3.8" length="8" lengthOffset="2"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="1>0" radius="0.35" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.8" lateralStiffness="2" />
        <wheel driveMode="0" repr="1>1" radius="0.35" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.8" lateralStiffness="2" />

		<wheel driveMode="0" repr="3>1" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>
		<wheel driveMode="0" repr="3>2" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>
		<wheel driveMode="0" repr="4>1" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>
		<wheel driveMode="0" repr="4>2" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>
		<wheel driveMode="0" repr="5>0" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>
		<wheel driveMode="0" repr="5>1" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>

		<wheel driveMode="0" repr="6>1" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>
		<wheel driveMode="0" repr="6>2" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>
		<wheel driveMode="0" repr="7>1" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>
		<wheel driveMode="0" repr="7>2" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>
		<wheel driveMode="0" repr="8>0" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>
		<wheel driveMode="0" repr="8>1" radius="0.2" deltaY="0.1" suspTravel="0.2" spring="50" damper="30" mass="0.1" lateralStiffness="0.25" isSynchronized="false"/>
    </wheels>

	<groundReferenceNode index="0>2" threshold="0.3" />

	<powerTakeoffInput index="0>1" rotSpeed="0" />

	<lightCoronas>
		<lightCorona index="3>6|8" />
		<lightCorona index="6>6|8" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="3>6|10" />
		<brakeLight index="6>6|10" />
	</brakeLights>

	<speedRotatingParts>
        <speedRotatingPart index="3>3" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
        <speedRotatingPart index="3>4" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="3>5" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="4>3" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="4>4" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="5>2" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="5>3|0|0" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="5>3|0|1" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>

        <speedRotatingPart index="6>3" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
        <speedRotatingPart index="6>4" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="6>5" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="7>3" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="7>4" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="8>2" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="8>3|0|0" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
		<speedRotatingPart index="8>3|0|1" radius="0.35" foldMinLimit="0" foldMaxLimit="0.02"/>
    </speedRotatingParts>

    <cuttingAreas count="4">
        <cuttingArea1 startIndex="3>6|11" widthIndex="3>6|12" heightIndex="3>6|13" foldMinLimit="0" foldMaxLimit="0.12" particleSystemIndex="0"/>
        <cuttingArea2 startIndex="6>6|11" widthIndex="6>6|12" heightIndex="6>6|13" foldMinLimit="0" foldMaxLimit="0.12" particleSystemIndex="1"/>
        <cuttingArea3 startIndex="5>3|6" widthIndex="5>3|7" heightIndex="5>3|8" foldMinLimit="0" foldMaxLimit="0.12" particleSystemIndex="2"/>
        <cuttingArea4 startIndex="8>3|6" widthIndex="8>3|7" heightIndex="8>3|8" foldMinLimit="0" foldMaxLimit="0.12" particleSystemIndex="3"/>
    </cuttingAreas>

    <grassParticleSystems>
        <grassParticleSystem node="3>6|17" rotation="0 0 0" file="data/vehicles/particleSystems/kuhnGFParticleSystem.i3d" />
        <grassParticleSystem node="6>6|17" rotation="0 0 0" file="data/vehicles/particleSystems/kuhnGFParticleSystem.i3d" />
        <grassParticleSystem node="5>3|12" rotation="0 0 0" file="data/vehicles/particleSystems/kuhnGFParticleSystem.i3d" />
		<grassParticleSystem node="8>3|12" rotation="0 0 0" file="data/vehicles/particleSystems/kuhnGFParticleSystem.i3d" />
    </grassParticleSystems>

    <tedderDropAreas count="4">
        <tedderDropArea1 startIndex="3>6|14" widthIndex="3>6|15" heightIndex="3>6|16"/>
        <tedderDropArea2 startIndex="6>6|14" widthIndex="6>6|15" heightIndex="6>6|16"/>
        <tedderDropArea3 startIndex="5>3|9" widthIndex="5>3|10" heightIndex="5>3|11"/>
		<tedderDropArea4 startIndex="8>3|9" widthIndex="8>3|10" heightIndex="8>3|11"/>
    </tedderDropAreas>

    <tedderSound file="data/vehicles/tools/tedder.wav" pitchOffset="1" volume="1"/>

    <attacherJoint index="0>0" jointType="trailerLow"  />

    <rotors>
        <rotor index="3>6|0" direction="-1.5" />
        <rotor index="3>6|1" direction="1.5" />
        <rotor index="3>6|2" direction="-1.5" />
        <rotor index="4>5|2" direction="1.5" />
        <rotor index="4>5|3" direction="-1.5" />
        <rotor index="5>3|1" direction="1.5" /> 
		<rotor index="5>3|0|2" direction="-1.5" />
		<rotor index="5>3|0|3" direction="1.5" />

		<rotor index="6>6|0" direction="1.5" />
        <rotor index="6>6|1" direction="-1.5" />
        <rotor index="6>6|2" direction="1.5" />
        <rotor index="7>5|2" direction="-1.5" />
        <rotor index="7>5|3" direction="1.5" />
		<rotor index="8>3|1" direction="-1.5" /> 
        <rotor index="8>3|0|2" direction="1.5" /> 
		<rotor index="8>3|0|3" direction="-1.5" />
    </rotors>

    <support animationName="moveSupport" />

	<movingTools>
        <!-- support -->
        <movingTool index="0>4" componentJointIndex="1" anchorActor="0"></movingTool>

		<!-- back axle -->
		<movingTool index="0>2|5|0" componentJointIndex="0" anchorActor="0"></movingTool>

		<!-- right -->
		<movingTool index="7>0" componentJointIndex="7 9" anchorActor="0"></movingTool>
		<movingTool index="8>3|0" componentJointIndex="9" anchorActor="0"></movingTool>

		<!-- left -->
		<movingTool index="4>0" componentJointIndex="4 8" anchorActor="0"></movingTool>
		<movingTool index="5>3|0" componentJointIndex="8" anchorActor="0"></movingTool>

		<movingTool index="0>2|6|0|0" componentJointIndex="2" anchorActor="0"></movingTool>
		<movingTool index="0>2|7|0|0" componentJointIndex="5" anchorActor="0"></movingTool>
		<movingTool index="0>2|6|0" componentJointIndex="2" anchorActor="0"></movingTool>
		<movingTool index="0>2|7|0" componentJointIndex="5" anchorActor="0"></movingTool>

		<movingTool index="8>3|0|8|0">
			<dependentPart index="8>3|0|7" />
		</movingTool>
		<movingTool index="5>3|0">
			<dependentPart index="5>3|2" />
			<dependentPart index="5>3|3" />
		</movingTool>
		<movingTool index="8>3|0">
			<dependentPart index="8>3|2" />
			<dependentPart index="8>3|3" />
		</movingTool>
    </movingTools>

    <movingParts>
		<!-- ropes -->
		<movingPart index="0>2|9" referencePoint="5>3|0|6" referenceFrame="0>" scaleZ="true" isActiveDirty="true"/>
		<movingPart index="0>2|8" referencePoint="8>3|0|6" referenceFrame="0>" scaleZ="true" isActiveDirty="true"/>

		<!-- folding hydraulic left -->
		<movingPart index="0>2|6|0|1" referencePoint="3>6|5" referenceFrame="0>" isActiveDirty="true">
            <translatingPart index="0>2|6|0|1|0" />
        </movingPart>
		<movingPart index="3>6|6" referencePoint="0>2|11" referenceFrame="0>" isActiveDirty="true">
            <translatingPart index="3>6|6|0" />
        </movingPart>

		<!-- folding hydraulic right -->
		<movingPart index="6>6|6" referencePoint="0>2|10" referenceFrame="0>" isActiveDirty="true">
            <translatingPart index="6>6|6|0" />
        </movingPart>
		<movingPart index="0>2|7|0|1" referencePoint="6>6|5" referenceFrame="0>" isActiveDirty="true">
            <translatingPart index="0>2|7|0|1|0" />
        </movingPart>

		<!-- ptos -->
		<movingPart index="0>2|13" referencePoint="3>6|7" referenceFrame="0>" isActiveDirty="true">
            <translatingPart index="0>2|13|0" />
			<translatingPart index="0>2|13|0|0" />
        </movingPart>
		<movingPart index="0>2|12" referencePoint="6>6|7" referenceFrame="0>" isActiveDirty="true">
            <translatingPart index="0>2|12|0" />
			<translatingPart index="0>2|12|0|0" />
        </movingPart>

		<!-- blanket -->
		<movingPart index="8>3|0|7" referencePoint="8>3|0|8|0|1" referenceFrame="8>" >
            <translatingPart index="8>3|0|7|0" />
        </movingPart>

		<!-- outer hydraulic -->
		<movingPart index="4>5|1" referencePoint="5>3|4" referenceFrame="4>" isActiveDirty="true">
            <translatingPart index="4>5|1|0" />
        </movingPart>
		<movingPart index="7>5|1" referencePoint="8>3|4" referenceFrame="7>" isActiveDirty="true">
            <translatingPart index="7>5|1|0" />
        </movingPart>

		<!-- stabilizer -->
		<movingPart index="3>6|3" referencePoint="4>5|5" referenceFrame="3>" isActiveDirty="true" scaleZ="true"/>
		<movingPart index="6>6|3" referencePoint="7>5|5" referenceFrame="6>" isActiveDirty="true" scaleZ="true"/>

		<movingPart index="3>6|4" referencePoint="4>5|4" referenceFrame="3>" isActiveDirty="true" scaleZ="true" invertZ="true"/>
		<movingPart index="4>5|0" referencePoint="5>3|5" referenceFrame="4>" isActiveDirty="true" scaleZ="true" invertZ="true"/>
		<movingPart index="6>6|4" referencePoint="7>5|4" referenceFrame="6>" isActiveDirty="true" scaleZ="true"/>
		<movingPart index="7>5|0" referencePoint="8>3|5" referenceFrame="7>" isActiveDirty="true" scaleZ="true"/>

		<movingPart index="5>3|2" referencePoint="5>3|0|4" referenceFrame="5>" scaleZ="true"/>
		<movingPart index="5>3|3" referencePoint="5>3|0|5" referenceFrame="5>" scaleZ="true" invertZ="true"/>
		<movingPart index="8>3|2" referencePoint="8>3|0|4" referenceFrame="8>" scaleZ="true"/>
		<movingPart index="8>3|3" referencePoint="8>3|0|5" referenceFrame="8>" scaleZ="true"/>
    </movingParts>

    <animations>
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>4" startTime="0" duration="0.6" startTrans="-0.1556 1.374 5.2045" endTrans="-0.1556 0.833 5.2045" />
			<part node="0>2|4" startTime="0" endTime="0.05" visibility="false" />
			<part node="0>2|3" startTime="0" endTime="0.05" visibility="true" />
			<part node="0>2|4" startTime="0.05" endTime="0.1" visibility="true" />
			<part node="0>2|3" startTime="0.05" endTime="0.1" visibility="false" />
        </animation>

		<animation name="rightFold">
			<!-- lower anim -->
			<part componentJointIndex="5" startTime="0" endTime="1.0" startRotLimit="0 0 9" endRotLimit="0 0 0"/>
			<part componentJointIndex="6" startTime="0" endTime="1.0" startRotLimit="0 0 9" endRotLimit="0 0 0"/>
			<part componentJointIndex="7" startTime="0" endTime="1.0" startRotLimit="0 0 9" endRotLimit="0 0 0"/>
			<part node="0>2|5|0" startTime="0" duration="1.5" startTrans="-0.00523 -0.59236 -0.00526" endTrans="-0.00523 -0.88909 -0.00526" />
			<!-- folding -->
			<part node="0>2|5|0" startTime="1.5" endTime="4" startTrans="-0.00523 -0.88909 -0.00526" endTrans="-0.00523 -1.2 -0.00526" />
			<part node="7>0" startTime="1.5" endTime="8" startRot="0 0 0" endRot="0 0 -140" />
			<part node="8>3|0" startTime="6.5" endTime="9" startRot="0 0 0" endRot="0 0 -40" />
			<part node="0>2|7|0|0" startTime="8" endTime="11" startRot="0 0 0" endRot="0 0 -20" />
			<part node="0>2|7|0" startTime="11.5" endTime="16" startRot="0 0 0" endRot="0 90 0" />
			<part node="8>3|0|8|0" startTime="13" endTime="16" startRot="0 0 0" endRot="0 110 0" />
        </animation>
		<animation name="leftFold">
			<!-- lower anim -->
			<part componentJointIndex="2" startTime="0" endTime="1.0" startRotLimit="0 0 9" endRotLimit="0 0 0"/>
			<part componentJointIndex="3" startTime="0" endTime="1.0" startRotLimit="0 0 9" endRotLimit="0 0 0"/>
			<part componentJointIndex="4" startTime="0" endTime="1.0" startRotLimit="0 0 9" endRotLimit="0 0 0"/>
			<!-- folding -->
			<part node="4>0" startTime="1.5" endTime="8" startRot="0 0 0" endRot="0 0 140" />
			<part node="5>3|0" startTime="6.5" endTime="9" startRot="0 0 0" endRot="0 0 40" />
			<part node="0>2|6|0|0" startTime="8" endTime="11" startRot="0 0 0" endRot="0 0 20" />
			<part node="0>2|6|0" startTime="11.5" endTime="16" startRot="0 0 0" endRot="0 -90 0" />
        </animation>
    </animations>

	<foldingParts startMoveDirection="1" foldMiddleAnimTime="0.1">
        <foldingPart animationName="rightFold" speedScale="1.0" />
        <foldingPart animationName="leftFold" speedScale="1.1" />
    </foldingParts>

    <components count="11">
        <component1 centerOfMass="0 0 3.0" solverIterationCount="20" /> <!-- main -->
        <component2 centerOfMass="0 0 0" solverIterationCount="20" /> <!-- back axle -->
        <component3 centerOfMass="0 -0.6 0" solverIterationCount="20" /> <!-- support -->
        <component4 centerOfMass="0 -0.6 0" solverIterationCount="20" /> <!-- left inner col -->
        <component5 centerOfMass="0 -0.6 0" solverIterationCount="20" /> <!-- left middle col -->
        <component6 centerOfMass="0 -0.6 0" solverIterationCount="20" /> <!-- left outer col -->
        <component7 centerOfMass="0 0 0" solverIterationCount="20" /> <!-- right inner col -->
		<component8 centerOfMass="0 -0.6 0" solverIterationCount="20" /> <!-- right middle col -->
        <component9 centerOfMass="0 0 0" solverIterationCount="20" /> <!-- right outer col -->
		<component10 centerOfMass="0 -0.6 0" solverIterationCount="20" /> <!-- right middle col -->
        <component11 centerOfMass="0 0 0" solverIterationCount="20" /> <!-- right outer col -->
        <joint component1="0" component2="1" index="0>2|5|0" rotLimit="0 0 0" transLimit="0 0 0" /> <!-- main + axle -->
        <joint component1="0" component2="2" index="0>4" rotLimit="0 0 0" transLimit="0 0 0" /> <!-- main + support -->

		<joint component1="0" component2="3" index="0>2|6|0|0" rotLimit="0 0 9" transLimit="0 0 0" /> <!-- main + left inner col-->
        <joint component1="3" component2="4" index="3>0" rotLimit="0 0 9" transLimit="0 0 0" /> <!-- left inner col + left middle col-->
        <joint component1="4" component2="5" index="4>0" rotLimit="0 0 9" transLimit="0 0 0" /> <!-- left middle + left outer col -->

		<joint component1="0" component2="6" index="0>2|7|0|0" rotLimit="0 0 9" transLimit="0 0 0" /> <!-- main + right inner col-->
        <joint component1="6" component2="7" index="6>0" rotLimit="0 0 9" transLimit="0 0 0" /> <!-- right inner col + right middle col-->
        <joint component1="7" component2="8" index="7>0" rotLimit="0 0 9" transLimit="0 0 0" /> <!-- right middle + right outer col -->

		<joint component1="5" component2="9" index="5>3|0|7" rotLimit="0 0 0" transLimit="0 0 0" /> <!-- outer col part -->
        <joint component1="8" component2="10" index="8>3|0|7" rotLimit="0 0 0" transLimit="0 0 0" /> <!-- outer col part -->

		<collisionPair component1="3" component2="6" enabled="false" />
		<collisionPair component1="1" component2="4" enabled="false" />
        <collisionPair component1="1" component2="6" enabled="false" />
		<collisionPair component1="0" component2="4" enabled="false" />
        <collisionPair component1="0" component2="5" enabled="false" />
		<collisionPair component1="0" component2="7" enabled="false" />
        <collisionPair component1="0" component2="8" enabled="false" />
    </components>

    <schemaOverlay file="data/vehicles/schemas/implementSchema.png" fileSelected="data/vehicles/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>