<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Kronekr16">
	<annotation>Copyright (C) Marcin345, All Rights Reserved.</annotation>
    <name>
        <en>KroneKR</en>
        <de>KroneKr</de>
    </name>
    <description></description>
    <typeDesc>
        <en>KroneKR</en>
        <de>KroneKR</de>
    </typeDesc>	
    <filename>Krone_KR_8_16.i3d</filename>
    <size width="3.5" length="15.0" />
    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="0.5" deltaY="0.18" suspTravel="0.25" spring="5" damper="20" mass="0.4" lateralStiffness="10" />
        <wheel driveMode="0" repr="1" radius="0.5" deltaY="0.18" suspTravel="0.25" spring="5" damper="20" mass="0.4" lateralStiffness="10" />
    </wheels>
    <capacity>2000</capacity>
    <brakeForce>2</brakeForce>
	<steeringAxleAngleScale startSpeed="5" endSpeed="70" />
    <cuttingAreas count="1">
        <cuttingArea1 startIndex="7" widthIndex="8" heightIndex="9"/>
    </cuttingAreas>
    <fillScale value="1" />
    <massScale value="0.2" />

    <balerSound file="Sounds/prasowanie.wav" pitchOffset="1" volume="2.0"/>
    <balerAlarm file="Sounds/Pip.wav" pitchOffset="1" volume="2.0"/>
    <balerBaleEject file="$data/vehicles/balers/kroneComprimaBaleEject.wav" pitchOffset="1" volume="1.5"/>
    <balerDoor file="Sounds/zamykanie.wav" pitchOffset="1" volume="2.0"/>

    <attacherJoint index="6" jointType="trailerLow"/>
    <baleTypes>
        <baleType fruitType="wheat" filename="bele/roundbaleStraw.i3d" />
        <baleType fruitType="barley" filename="bele/roundbaleStraw.i3d" />
        <baleType fruitType="grass" filename="bele/roundbaleHay.i3d" />
        <baleType fruitType="dryGrass" filename="bele/roundbaleHay.i3d" />
    </baleTypes>
    <baleAnimation node="11|0" baleDropAnimTime="9" unloadAnimationName="unloadBale" unloadAnimationSpeed="5" closeAnimationName="closeDoor" closeAnimationSpeed="5"/>
    <allowFillFromAir value="false" />
    <allowTipDischarge value="false" />
    <fillTypes fruitTypes="wheat barley dryGrass grass" />
    <balerUVScrollParts>
          <balerUVScrollPart index="4" speed="0 1.4" />
         <balerUVScrollPart index="21|0"   speed="0 1.0" />
    </balerUVScrollParts>	

    <lights count="1">
        <light1 index="10|4" />
    </lights>

<strawParticleSystems>
		<strawParticleSystem file="particleSystems/StrawPickup.i3d" node="0>24|0" position="0 0 0" rotation="0 0 0" static="true" /> 
		<strawParticleSystem file="particleSystems/Dust_Wheat_Barley.i3d" node="0>24|0" position="0 0 0" rotation="0 0 0" /> 
	</strawParticleSystems>
	<grassParticleSystems>
		<grassParticleSystem file="particleSystems/GrassPickup.i3d" node="0>24|0" position="0 0 0" rotation="0 0 0" static="true" /> 
	</grassParticleSystems>

    <!-- Czesci zdejmowane/swiatla -->
    <lightsaddon lightsStayOn="true">
		<light type="dirLeft" index="10|2" />
		<light type="dirRight" index="10|3" />
		<light type="brake" index="10|1" />
	</lightsaddon>

	<animationParts>
                          <animationPart rootNode="23|0"  clipName="PodbieraczClipSource"  clipSpeed="1.2" loop="false" loadSave="true" numJoints="0" offSet="40" accerlation="0.09" deAccerlation="0.02"> 
		</animationPart>
                          <animationPart rootNode="23|0|0|1"  clipName="WorkClipSource"  clipSpeed="1.2" loop="true" loadSave="true" numJoints="0" offSet="40" accerlation="0.09" deAccerlation="0.02"> 
		</animationPart>
                          <animationPart rootNode="23|2"  clipName="KlapaClipSource"  clipSpeed="1.2" loop="false" loadSave="true" numJoints="0" offSet="40" accerlation="0.09" deAccerlation="0.02"> 
		</animationPart>
	</animationParts>

	<powerShaft index="0>20" part="0>20|1" fixPoint="0>20|1|0" />

    <movingTools>
        <!-- support -->
        <movingTool index="0>16" componentJointIndex="0" anchorActor="0"></movingTool>
    </movingTools>
	
    <animations>
        <!-- unload bale -->
        <animation name="unloadBale">
            <part node="10" startTime="0" endTime="5" startRot="0 0 0" endRot="70 0 0"/>
            <part node="11|0" startTime="0" endTime="2.5" startRot="0 0 0" endRot="0 0 10"   startTrans="0 0 0" endTrans="0.34976 0 0"/>
            <part node="11|0" startTime="2.5" endTime="4" startRot="0 0 10" endRot="0 0 30"   startTrans="0.34976 0 0" endTrans="0.7146 -0.16987 0"/>
            <part node="11|0" startTime="4" endTime="5" startRot="0 0 30" endRot="0 0 15"   startTrans="0.7146 -0.16987 0" endTrans="0.86357 -0.28845 0"/>
            <part node="11|0" startTime="5" endTime="6" startRot="0 0 15" endRot="0 0 0"    startTrans="0.86357 -0.28845 0" endTrans="1.15741 -0.40452 0"/>
            <part node="11|0" startTime="6" endTime="7.5" startRot="0 0 0" endRot="0 0 -60"    startTrans="1.15741 -0.40452 0" endTrans="1.53582 -0.64815 0"/>
            <part node="11|0" startTime="7.5" endTime="8" startRot="0 0 -60" endRot="0 0 -75"  startTrans="1.53582 -0.64815 0" endTrans="1.9339 -0.69695 0"/> 
            <part node="11|0" startTime="8" endTime="9" startRot="0 0 -75" endRot="0 0 -105"  startTrans="1.9339 -0.69695 0" endTrans="2.7 -0.66068 0"/>
            <part node="12" startTime="4" endTime="7.5" startRot="0 0 0" endRot="-40 0 0"/>
            <part node="12" startTime="8.5" endTime="10" startRot="-40 0 0" endRot="0 0 0"/>
        </animation>

        <animation name="closeDoor">
            <part node="10" startTime="0" endTime="5" startRot="0 0 0" endRot="0 0 0"/>
            <part node="11|0" startTime="0" endTime="5" startRot="0 0 0" endRot="0 0 0" startTrans="0 0 0" endTrans="0 0 0"/>
            <part node="12" startTime="0" endTime="5" startRot="0 0 0" endRot="0 0 0"/>
        </animation>

        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="16" startTime="0" duration="0.6" startTrans="0.2032 0.35394 0.97593" endTrans="0.2032 -0.07566 0.97593" />
        </animation>
		
    </animations>
 <support animationName="moveSupport" />

    <components count="2">
        <component1 centerOfMass="0 0 -0.8" solverIterationCount="4" />
        <component2 solverIterationCount="8" />
        <joint component1="0" component2="1" index="0>16|0" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>
	
</vehicle>
