﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="cultivator_animated">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
		<en>Amazone Catros 5500</en>
        <de>Amazone Catros 5500</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Cultivator</typeDesc>
    <filename>data/vehicles/tools/amazone/amazoneCatros5500.i3d</filename>

    <size width="4" length="6.5"/>

    <maxSpeedLevel value="2"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="1>0" radius="0.36" deltaY="0.03" suspTravel="0.05" spring="250" damper="20" mass="0.4" lateralStiffness="30" />
        <wheel driveMode="0" repr="1>1" radius="0.36" deltaY="0.03" suspTravel="0.05" spring="250" damper="20" mass="0.4" lateralStiffness="30" />
    </wheels>

	<brakeForce>1</brakeForce>
	<downForce>4</downForce>

    <cuttingAreas count="2">
        <cuttingArea1 startIndex="0>0|0|3" widthIndex="0>0|0|4" heightIndex="0>0|0|5" foldMinLimit="0" foldMaxLimit="0.15" />
        <cuttingArea2 startIndex="0>0|2|3" widthIndex="0>0|2|4" heightIndex="0>0|2|5" foldMinLimit="0" foldMaxLimit="0.15" />
    </cuttingAreas>

    <groundReferenceNodes>
        <groundReferenceNode index="2>" threshold="0.35" />
        <groundReferenceNode index="3>" threshold="0.35" />
    </groundReferenceNodes>

    <cultivatorSound file="data/vehicles/tools/cultivatorSound.wav" pitchOffset="1" volume="1"/>
	<cylinderedHydraulicSound file="data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />

    <attacherJoint index="0>1" jointType="trailerLow" />

    <isDefaultLowered value="false"/>
    <needsLowering value="true" />
    <allowsLowering value="true" />
	<onlyActiveWhenLowered value="false" />

    <speedRotatingParts>
        <speedRotatingPart index="0>0|0|0|0" radius="0.36" foldMinLimit="0" foldMaxLimit="0.22" rotateOnGroundContact="true"/>
        <speedRotatingPart index="0>0|2|0|0" radius="0.36" foldMinLimit="0" foldMaxLimit="0.22" rotateOnGroundContact="true"/>
        <speedRotatingPart index="0>0|4|0|0" radius="0.36" foldMinLimit="0" foldMaxLimit="0.22" rotateOnGroundContact="true"/>
   </speedRotatingParts>

    <groundParticleSystems>
        <groundParticleSystem position="-2 0 -0.5" rotation="0 0 0" file="data/vehicles/particleSystems/fieldWorkParticleSystem.i3d" />
        <groundParticleSystem position="2 0 -0.5" rotation="0 0 0" file="data/vehicles/particleSystems/fieldWorkParticleSystem.i3d" />
    </groundParticleSystems>

	<lightCoronas>
		<lightCorona index="0>2" />
		<lightCorona index="0>0|4|4" />
	</lightCoronas>	

	<brakeLights>
		<brakeLight index="0>0|4|5" />
	</brakeLights>

    <aiLeftMarker index="0>5" />
    <aiRightMarker index="0>6" />
    <aiBackMarker index="0>7" />

    <aiForceTurnNoBackward value="true" />

    <movingTools>
        <!-- rightSide -->
        <movingTool index="0>0|0" componentJointIndex="1" anchorActor="0">
            <dependentPart index="0>0|1" />
        </movingTool>
		<movingTool index="0>0|0|0">
			<dependentPart index="0>0|0|1" />
        </movingTool>
        <!-- leftSide -->
        <movingTool index="0>0|2" componentJointIndex="2" anchorActor="0">
            <dependentPart index="0>0|3" />
        </movingTool>
		<movingTool index="0>0|2|0">
			<dependentPart index="0>0|2|1" />
        </movingTool>

		<!-- wheelMount-->
		<movingTool index="0>0|4" componentJointIndex="0" anchorActor="0">
			<dependentPart index="0>0|5" />
        </movingTool>
		<movingTool index="0>0|4|0">
			<dependentPart index="0>0|4|0|1" />
        </movingTool>

		<!-- support -->
        <movingTool index="0>9" componentJointIndex="3" anchorActor="0">
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- right lift cylinder -->
        <movingPart index="0>0|1" referencePoint="0>0|0|2" referenceFrame="0>" >
            <translatingPart index="0>0|1|0" />
        </movingPart>
		<!-- right back part cylinder -->
		<movingPart index="0>0|0|1" referencePoint="0>0|0|0|1" referenceFrame="0>" >
            <translatingPart index="0>0|0|1|0" />
        </movingPart>
        <!-- left lift cylinder -->
        <movingPart index="0>0|3" referencePoint="0>0|2|2" referenceFrame="0>" >
            <translatingPart index="0>0|3|0" />
        </movingPart>
		<!-- left back part cylinder -->
		<movingPart index="0>0|2|1" referencePoint="0>0|2|0|1" referenceFrame="0>" >
            <translatingPart index="0>0|2|1|0" />
        </movingPart>		

		<!-- wheelMount cylinder -->
        <movingPart index="0>0|5" referencePoint="0>0|4|2" referenceFrame="0>" >
            <translatingPart index="0>0|5|0" />
        </movingPart>
		<!-- middle back part cylinder -->
        <movingPart index="0>0|4|0|1" referencePoint="0>0|4|3" referenceFrame="0>" >
            <translatingPart index="0>0|4|0|1|0" />
        </movingPart>
    </movingParts>

    <foldingParts startMoveDirection="1" foldMiddleAnimTime="0.2">
        <foldingPart componentJointIndex="0" anchorActor="0" animationName="rightFold" speedScale="1" />
        <foldingPart componentJointIndex="1" anchorActor="0" animationName="leftFold" speedScale="1" />
    </foldingParts>

    <animations>
        <animation name="rightFold">
			<part node="0>0|4" startTime="0" duration="3.0" startRot="0 0 0" endRot="-30 0 0"/>
			<part node="0>0|0|0" startTime="0" duration="3.0" startRot="0 0 0" endRot="-30 0 0"/>
			<part node="0>0|2|0" startTime="0" duration="3.0" startRot="0 0 0" endRot="-30 0 0"/>

			<part node="0>0|4|0" startTime="3.5" duration="5.5" startRot="0 0 0" endRot="30 0 0"/>
			<part node="0>0|0|0" startTime="3.5" duration="5.5" startRot="-30 0 0" endRot="0 0 0"/>
			<part node="0>0|2|0" startTime="3.5" duration="5.5" startRot="-30 0 0" endRot="0 0 0"/>
			<part node="0>0|0" startTime="3.5" duration="9.0" startRot="0 0 0" endRot="0 0 -90"/>
        </animation>
		<animation name="leftFold">
            <part node="0>0|2" startTime="3.5" duration="9.0" startRot="0 0 0" endRot="0 0 90"/>
        </animation>

		<!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>0|7" startTime="0" duration="0.5" startRot="0 0 0" endRot="77 0 0" />
			<part node="0>9" startTime="0" duration="0.5" startTrans="0.0045 0.72151 0.76373" endTrans="0.0045 0.1938 0.76373" />
        </animation>
    </animations>

	<support animationName="moveSupport" />
    <aiTrafficCollisionTrigger index="0>8" />

    <components count="5">
        <component1 centerOfMass="0 -0.6 0" solverIterationCount="15" />
		<component2 centerOfMass="0 0 0" solverIterationCount="15" />
        <component3 centerOfMass="2 -0.2 0.92" solverIterationCount="15" />
        <component4 centerOfMass="-2 -0.2 0.92" solverIterationCount="15" />
		<component4 centerOfMass="0 0 0" solverIterationCount="15" />
		<joint component1="0" component2="1" index="0>0|4" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="2" index="0>0|0" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="3" index="0>0|2" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="4" index="0>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>