﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="KroneEasyFlow">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Krone EasyFlow</en>
        <de>Krone EasyFlow</de>
    </name>
	<typeDesc>EasyFlow</typeDesc>
    <filename>KroneEasyFlow.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.009" />
		<roll index="7" speed="0.009" />
		<roll index="4|2|2" speed="-0.001" />
	</rolls>  
	
    <aiLeftMarker index="12" />
    <aiRightMarker index="11" />
	
    <aiLeftCheck index="15" />
    <aiRightCheck index="14" />

    <aiTrafficCollisionTrigger index="10" />
	
	<attacherJoint index="0" jointType="cutter"/>

    <dynamicMount forceLimit="0.04" />

    <threshingParticleSystem position="0 0 -1" rotation="0 0 0" file="$data/vehicles/particleSystems/threshingCutterMiddleParticleSystem.i3d" />

	<preferedCombineSize>2</preferedCombineSize>
    <fruitTypes fruitTypes="grass wheat barley chaff_windrow"/>

    <convertedFruits>
        <convertedFruit input="grass" output="chaff"/>
        <convertedFruit input="wheat" output="chaff"/>
        <convertedFruit input="barley" output="chaff"/>
		<convertedFruit input="chaff_windrow" output="chaff"/>
    </convertedFruits>

    <components count="4">
        <component1 centerOfMass="0 -0.5 0" solverIterationCount="8" />
        <component2 centerOfMass="0 0 0" solverIterationCount="32" />
        <component3 centerOfMass="0 0 0" solverIterationCount="32" />
        <component4 centerOfMass="0 0 0" solverIterationCount="8" />
        <joint component1="0" component2="1" index="0>4|4|0" rotLimit="0 180 0" transLimit="0 0.05 0" />
        <joint component1="0" component2="2" index="0>4|3|0" rotLimit="0 180 0" transLimit="0 0.05 0" />
        <joint component1="0" component2="3" index="0>13" 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>4|1" referencePoint="0>4|2|3" referenceFrame="0>4|2|3" invertZ="false">
            <translatingPart index="0>4|1|0" />
        </movingPart>        
		<movingPart index="0>4|0" referencePoint="0>4|2|4" referenceFrame="0>4|2|4" invertZ="false">
			<translatingPart index="0>4|0|0" />
        </movingPart>       
		<movingPart index="0>4|0|1" referencePoint="0>4|2|4" referenceFrame="0>4|2|4" invertZ="false" scaleZ="true">
        </movingPart>
    </movingParts>
	
	<movingTools>
        <!-- middlePart -->
        <movingTool index="0>4|2">
            <!-- lift cylinder -->
            <dependentPart index="0>4|1" />
            <dependentPart index="0>4|0" />
            <dependentPart index="0>4|0|0" />
            <dependentPart index="0>4|0|1" />
        </movingTool>
		
        <!-- support -->
        <movingTool index="0>13" componentJointIndex="2" anchorActor="0"/>

    </movingTools>

    <animations>
        <animation name="Fold">
			<part node="0>4|2" startTime="0" endTime="2.0" startRot="-8.729 0 0" endRot="8.729 0 0"/>
            <part node="0>4|3" startTime="0" endTime="2.0" startRot="0 -19 0" endRot="0 0 0"/>
            <part node="0>4|4" startTime="0" endTime="2.0" startRot="0 19 0" endRot="0 0 0"/>
        </animation>
        <!-- support -->
        <animation name="moveSupport">
            <part node="0>13" startTime="0" duration="0.25" startTrans="0 0.063 1.1022" endTrans="0 -0.55991 1.1567" />
        </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>
	
    <speedRotatingParts>
        <speedRotatingPart index="0>8" radius="0.285" />
        <speedRotatingPart index="0>4|3|0|0" radius="0.285" />
        <speedRotatingPart index="0>4|4|0|0" radius="0.285" />
    </speedRotatingParts>
	
</vehicle>
