﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="KroneEasyFlow">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>EasyFlow</en>
        <de>EasyFlow</de>
    </name>
	<typeDesc>EasyFlow</typeDesc>
    <filename>EasyFlow.i3d</filename>
	
    <size width="7.5" length="3.0" />

    <cuttingAreas count="1">
        <cuttingArea1 startIndex="1" widthIndex="2" heightIndex="3" losing="false" foldMinLimit="0" foldMaxLimit="0.1"/>
    </cuttingAreas>
	
    <rolls>
		<roll index="5" speed="0.02" />
		<roll index="6" speed="-0.014" />
		<roll index="0>9|3|0" speed="0.01" />
	</rolls>
	
    <aiLeftMarker index="11" />
    <aiRightMarker index="10" />
	
    <aiLeftCheck index="13" />
    <aiRightCheck index="12" />

    <aiTrafficCollisionTrigger index="14" />
	
	<attacherJoint index="0" jointType="cutter"/>

    <dynamicMount forceLimit="0.04" />

    <particleSystems>
		<threshingParticleSystem type="grass" position="0 0.3 -0.9" rotation="40 180 0" file="particleSystems/psGrass.i3d" />
		<threshingParticleSystem type="wheat" position="0 0.3 -0.9" rotation="40 180 0" file="particleSystems/psStraw.i3d" />
		<threshingParticleSystem type="barley" position="0 0.3 -0.9" rotation="40 180 0" file="particleSystems/psStraw.i3d" />
		<threshingParticleSystem type="grass_windrow" position="0 0.9 -0.8" rotation="40 180 0" file="particleSystems/psGrass.i3d" />
		<threshingParticleSystem type="wheat_windrow" position="0 0.9 -0.8" rotation="40 180 0" file="particleSystems/psStraw.i3d" />
		<threshingParticleSystem type="barley_windrow" position="0 0.9 -0.8" rotation="40 180 0" file="particleSystems/psStraw.i3d" />
    </particleSystems>

	<preferedCombineSize>2</preferedCombineSize>
    <fruitTypes fruitTypes="grass wheat barley grass_windrow"/>
	
    <combineGrainTankFruitTypes fruitTypes="grass grass_windrow" />

    <convertedFruits>
        <convertedFruit input="grass" output="chaff"/>
        <convertedFruit input="wheat" output="chaff"/>
        <convertedFruit input="barley" output="chaff"/>
    </convertedFruits>

    <components count="5">
        <component1 centerOfMass="0 -0.5 0" solverIterationCount="20" />
        <component2 centerOfMass="0 0 0" solverIterationCount="32" />
        <component3 centerOfMass="0 0 0" solverIterationCount="32" />
        <component4 centerOfMass="0 0 0" solverIterationCount="8" />
        <component5 centerOfMass="0 0 0" solverIterationCount="8" />
        <joint component1="0" component2="1" index="0>9|4|0" rotLimit="0 180 0" transLimit="0 0.12 0" />
        <joint component1="0" component2="2" index="0>9|5|0" rotLimit="0 180 0" transLimit="0 0.12 0" />
        <joint component1="0" component2="3" index="0>7" rotLimit="0 0 0" transLimit="0 0 0" />
        <joint component1="0" component2="4" index="0>7" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>
	
    <schemaOverlay file="$data/vehicles/schemas/implement2Schema.png" fileSelected="$data/vehicles/schemas/implement2SchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="1 0"/>
	
    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="1>0" radius="0.209" deltaY="0.25" suspTravel="0.25" spring="100" damper="10" mass="0.4" />
        <wheel driveMode="0" repr="2>0" radius="0.209" deltaY="0.25" suspTravel="0.25" spring="100" damper="10" mass="0.4" />
    </wheels>
	
	<cylinderedHydraulicSound file="$data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />

	<groundReferenceNode index="0>" threshold="1.2"/>
	
    <movingParts>
        <!-- middle cylinder -->
        <movingPart index="0>9|0" referencePoint="0>9|3|1" referenceFrame="0>9|3|1" invertZ="true">
            <translatingPart index="0>9|0|0" />
        </movingPart>        
		<movingPart index="0>9|1" referencePoint="0>9|3|2" referenceFrame="0>9|3|2" invertZ="true">
			<translatingPart index="0>9|1|0" />
        </movingPart>       
		<movingPart index="0>9|2" referencePoint="0>9|3|3" referenceFrame="0>9|3|3" invertZ="true">
		<translatingPart index="0>9|2|0" />
        </movingPart>
    </movingParts>
	
	<movingTools>
        <!-- middlePart -->
        <movingTool index="0>9|3">
            <!-- lift cylinder -->
            <dependentPart index="0>9|0" />
            <dependentPart index="0>9|1" />
            <dependentPart index="0>9|2" />
            <!--dependentPart index="0>4|0|1" /-->
        </movingTool>
		
        <!-- support -->
        <movingTool index="0>7" componentJointIndex="2 3" anchorActor="0"/>

    </movingTools>

    <animations>
        <animation name="Fold">
			<part node="0>9|3" startTime="0" endTime="2.0" startRot="18 0 0" endRot="0 0 0"/>
            <part node="0>9|4" startTime="0" endTime="2.0" startRot="0 19 0" endRot="0 0 0"/>
            <part node="0>9|5" startTime="0" endTime="2.0" startRot="0 -19 0" endRot="0 0 0"/>
        </animation>
        <!-- support -->
        <animation name="moveSupport">
            <part node="0>7" startTime="0" duration="0.05" startTrans="0 0.9 0.4" endTrans="0 0.5 0.435" />
        </animation>
	</animations>
	
    <support animationName="moveSupport" />
	
	<foldingParts startMoveDirection="1">
        <foldingPart componentJointIndex="0" anchorActor="0" animationName="Fold" speedScale="1" />
        <foldingPart componentJointIndex="1" anchorActor="0" animationName="Fold" speedScale="1" />
    </foldingParts>
	
    <cutterSpeedRotatingParts>
        <cutterSpeedRotatingPart index="0>4" radius="0.140" />
    </cutterSpeedRotatingParts>
	
</vehicle>
