﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="plough">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Poettinger Servo 35</en>
        <de>Pöttinger Servo 35</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Plough</typeDesc>
    <filename>data/vehicles/tools/poettinger/poettingerServo35.i3d</filename>

    <size width="4.5" length="5.5" lengthOffset="-1.8"/>

    <cuttingAreas count="1">
        <cuttingArea1 startIndex="0>2|0|2|0" widthIndex="0>2|0|2|1" heightIndex="0>2|0|2|2"/>
    </cuttingAreas>

    <ploughTurnSound file="data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.5" volume="1.0"/>
    <ploughSound file="data/vehicles/tools/ploughSound.wav" pitchOffset="0.5" volume="1.0"/>

    <groundParticleSystem node="0>2|0|2|9" position="-0.3 0 0.9" file="data/vehicles/particleSystems/fieldWorkParticleSystem.i3d" />

    <speedRotatingParts>
        <speedRotatingPart index="0>2|0|2|6|0" radius="0.256" invertDirectionOnRotation="true" turnAnimLimit="0.05" turnAnimLimitSide="1" />
        <speedRotatingPart index="0>2|0|2|6|1" radius="0.256" invertDirectionOnRotation="true" turnAnimLimit="0.05" turnAnimLimitSide="-1" />
    </speedRotatingParts>

	<!--contactReportNode index="1>"/-->
    <groundReferenceNodes>
        <groundReferenceNode index="1>" threshold="0.9" />
    </groundReferenceNodes>

    <aiLeftMarker index="0>2|0|2|3" />
    <aiRightMarker index="0>2|0|2|4" />
    <aiBackMarker index="0>2|0|2|5" />

    <attacherJoint index="0" jointType="implement" topReferenceNode="1" upperRotationOffset="18" />

	<foldingParts startMoveDirection="1" turnOnFoldDirection="-1">
        <foldingPart componentJointIndex="0" anchorActor="0" animationName="foldPlough" speedScale="1.2" />
    </foldingParts>

    <animations>
        <!-- move wheel down/up -->
        <animation name="rotatePlough">
            <part node="0>2|0" startTime="0" endTime="7" startRot="0 0 0" endRot="0 0 -180" />
        </animation>

		<animation name="foldPlough">
            <part node="0>2|0|2" startTime="0" endTime="2.5" startRot="0 0 0" endRot="0 10 0" />
			<part node="0>2|0|2|6" startTime="0" endTime="2.5" startRot="0 0 0" endRot="0 -10 0" />
        </animation>
    </animations>

    <movingTools>
		<!-- main plough rotation-->
        <movingTool index="0>2|0" componentJointIndex="0" anchorActor="0">
            <dependentPart index="0>2|1" />
        </movingTool>

		<!-- fold rotation -->
        <movingTool index="0>2|0|2">
            <dependentPart index="0>2|0|0" />
			<dependentPart index="0>2|0|1" />
        </movingTool>
    </movingTools>

    <movingParts>
		<!-- wheel arm cylinder -->
        <movingPart index="0>2|1" referencePoint="0>2|0|3" referenceFrame="0>2|2">
            <translatingPart index="0>2|1|0" />
        </movingPart>

        <movingPart index="0>2|0|0" referencePoint="0>2|0|2|7" referenceFrame="0>2|0" >
            <translatingPart index="0>2|0|0|0" />
        </movingPart>
        <movingPart index="0>2|0|1" referencePoint="0>2|0|2|8" referenceFrame="0>2|0" scaleZ="true"/>
    </movingParts>

    <rotationPart index="0>2|0" touchAnimMinLimit="0.06" touchAnimMaxLimit="0.94" turnAnimationName="rotatePlough"/>

    <components count="2">
        <component1 centerOfMass="0 0 0" solverIterationCount="15" />
        <component2 centerOfMass="0 0 -2" solverIterationCount="15" />
        <joint component1="0" component2="1" index="0>2|0|2|9" 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>