<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="cultivator_animated">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <typeDesc>$l10n_TypeDesc_Cultivator</typeDesc>
    <filename>terraTop800.i3d</filename>

    <size width="9" length="10" lengthOffset="0" />

    <maxSpeedLevel value="2"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="4>0" radius="0.54" deltaY="0.15" suspTravel="0.2" spring="120" damper="20" mass="0.4" />
        <wheel driveMode="0" repr="4>1" radius="0.54" deltaY="0.15" suspTravel="0.2" spring="120" damper="20" mass="0.4" />
		
        <wheel driveMode="0" repr="2" radius="0.315" deltaY="0.05" suspTravel="0.1" spring="20" damper="20" mass="0.4" />
        <wheel driveMode="0" repr="1>0" radius="0.315" deltaY="0.05" suspTravel="0.1" spring="20" damper="20" mass="0.4" />
        <wheel driveMode="0" repr="2>0" radius="0.315" deltaY="0.05" suspTravel="0.1" spring="20" damper="20" mass="0.4" />
    </wheels>

    <cuttingAreas count="2">
        <cuttingArea1 startIndex="6|0" widthIndex="6|1" heightIndex="6|2" foldMinLimit="0" foldMaxLimit="0.2" />
        <cuttingArea2 startIndex="7|0" widthIndex="7|1" heightIndex="7|2" foldMinLimit="0" foldMaxLimit="0.2" />
    </cuttingAreas>

    <cultivatorSound file="Sounds/ploughSound.wav" pitchOffset="0.5" volume="0.6"/>
	<cylinderedHydraulicSound file="Sounds/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />

    <attacherJoint rootNode="3>" index="3>0" jointType="implement" rotLimitScale="1 1 1" transLimitScale="1 1 1" allowsJointTransLimitMovement="true" allowsJointRotLimitMovement="false" />

    <isDefaultLowered value="false"/>
    <needsLowering value="true" />
    <allowsLowering value="true" />

    <speedRotatingParts>
        <speedRotatingPart index="0" radius="0.37" rotateOnGroundContact="false"/>
        <speedRotatingPart index="1" radius="0.37" rotateOnGroundContact="false"/>
        <speedRotatingPart index="5|3" radius="0.315" rotateOnGroundContact="false"/>
        <speedRotatingPart index="6|3" radius="0.37" foldMinLimit="0" foldMaxLimit="0.15" rotateOnGroundContact="false"/>
        <speedRotatingPart index="6|8|1" radius="0.315" foldMinLimit="0" foldMaxLimit="0.15" rotateOnGroundContact="false"/>
        <speedRotatingPart index="7|3" radius="0.37" foldMinLimit="0" foldMaxLimit="0.15" rotateOnGroundContact="false"/>
        <speedRotatingPart index="7|8|1" radius="0.315" foldMinLimit="0" foldMaxLimit="0.15" rotateOnGroundContact="false"/>
   </speedRotatingParts>

    <groundParticleSystems>
        <groundParticleSystem position="-2 0 -0.5" rotation="0 0 0" file="particleSystems/fieldWorkParticleSystem.i3d" />
        <groundParticleSystem position="2 0 -0.5" rotation="0 0 0" file="particleSystems/fieldWorkParticleSystem.i3d" />
    </groundParticleSystems>

    <lights count="1">
        <light1 index="11" />
    </lights>
	
	<lightCoronas>
		<lightCorona index="13" />	
	</lightCoronas>	

    <contactReportNodes>
        <contactReportNode index="0>" />
        <contactReportNode index="1>" />
        <contactReportNode index="2>" />
    </contactReportNodes>

    <aiLeftMarker index="8" />
    <aiRightMarker index="9" />
    <aiBackMarker index="10" />

    <aiForceTurnNoBackward value="true" />

    <movingTools>
        <!-- rightSide -->
        <movingTool index="0>6">
            <!-- lift cylinder -->
            <dependentPart index="0>5|0" />
        </movingTool>
        <!-- leftSide -->
        <movingTool index="0>7">
            <!-- lift cylinder -->
            <dependentPart index="0>5|1" />
        </movingTool>
        
		<!-- wheelMount-->
		<movingTool index="0>14" componentJointIndex="3" anchorActor="0">
			<!-- hydraulic -->
			<dependentPart index="5|4" />		
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- right lift cylinder -->
        <movingPart index="0>5|0" referencePoint="0>6|6" referenceFrame="0>6" invertZ="false">
            <translatingPart index="0>5|0|0" />
        </movingPart>
        <!-- left lift cylinder -->
        <movingPart index="0>5|1" referencePoint="0>7|6" referenceFrame="0>7" invertZ="false">
            <translatingPart index="0>5|1|0" />
        </movingPart>        
		<!-- wheelMount cylinder -->
        <movingPart index="0>5|4" referencePoint="0>14|1" referenceFrame="0>14|1" invertZ="true">
            <translatingPart index="0>5|4|0" />
        </movingPart>
    </movingParts>

    <foldingParts startMoveDirection="1">
        <foldingPart componentJointIndex="0" anchorActor="0" animationName="rightFold" speedScale="0.95" />
        <foldingPart componentJointIndex="1" anchorActor="0" animationName="leftFold" speedScale="0.9" />
    </foldingParts>

    <animations>
        <animation name="rightFold">
            <part node="0>6" startTime="0" endTime="10.0" startRot="0 0 0 " endRot="0 0 -90"/>
        </animation>
		<animation name="leftFold">
            <part node="0>7" startTime="0" endTime="10.0" startRot="0 0 0" endRot="0 0 90"/>
        </animation>		
		
		<animation name="lowerAnimation">
            <part node="0>14" startTime="0" endTime="2.0" startRot="0 0 0" endRot="30 0 0"/>
        </animation>
		
    </animations>
	
	<lowerAnimation name="lowerAnimation" speed="1" />
	
    <aiTrafficCollisionTrigger index="12" />

    <components count="5">
        <component1 centerOfMass="0 0 -0.45" solverIterationCount="8" />
        <component2 centerOfMass="2.3 0 0" solverIterationCount="8" />
        <component3 centerOfMass="-2.3 0 0" solverIterationCount="8" />
        <component4 solverIterationCount="8" />
        <component5 solverIterationCount="8" />
        <joint component1="0" component2="1" index="0>6|7" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="2" index="0>7|7" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="3" index="3>1" rotLimit="0 0 60" transLimit="0 0 0" />
        <joint component1="0" component2="4" index="0>14|0" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>
</vehicle>
