﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="baler">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Krone Comprima V180</en>
        <de>Krone Comprima V180</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Baler</typeDesc>
    <filename>data/vehicles/balers/kroneComprimaV180.i3d</filename>

    <size width="3.5" length="7.0" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="0.5" deltaY="0.22" suspTravel="0.25" spring="15" damper="20" mass="0.4" lateralStiffness="1.5" />
        <wheel driveMode="0" repr="1" radius="0.5" deltaY="0.22" suspTravel="0.25" spring="15" damper="20" mass="0.4" lateralStiffness="1.5" steeringAxleScale="-0.7" steeringAxleRotMax="25" steeringAxleRotMin="-25" />
        <wheel driveMode="0" repr="2" radius="0.5" deltaY="0.22" suspTravel="0.25" spring="15" damper="20" mass="0.4" lateralStiffness="1.5" />
        <wheel driveMode="0" repr="3" radius="0.5" deltaY="0.22" suspTravel="0.25" spring="15" damper="20" mass="0.4" lateralStiffness="1.5" steeringAxleScale="-0.7" steeringAxleRotMax="25" steeringAxleRotMin="-25" />
    </wheels>
    <capacity>6000</capacity>
    <brakeForce>3</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="data/vehicles/balers/kroneComprimaV180.wav" pitchOffset="1" volume="1"/>
    <balerAlarm file="data/vehicles/balers/kroneComprimaAlarm.wav" pitchOffset="1" volume="1"/>
    <balerBaleEject file="data/vehicles/balers/kroneComprimaBaleEject.wav" pitchOffset="1" volume="1.5"/>
    <balerDoor file="data/vehicles/balers/kroneComprimaDoor.wav" pitchOffset="1" volume="1"/>

    <attacherJoint index="6" jointType="trailerLow"/>

    <baleTypes>
        <baleType fillType="wheat_windrow" filename="data/maps/models/objects/roundbales/roundbaleStraw.i3d" />
        <baleType fillType="barley_windrow" filename="data/maps/models/objects/roundbales/roundbaleStraw.i3d" />
        <baleType fillType="dryGrass_windrow" filename="data/maps/models/objects/roundbales/roundbaleHay.i3d" />
    </baleTypes>
	
    <baleAnimation node="11|0" baleDropAnimTime="9" unloadAnimationName="unloadBale" unloadAnimationSpeed="5" closeAnimationName="closeDoor" closeAnimationSpeed="5"/>
    <allowFillFromAir value="false" />
    <allowTipDischarge value="false" />
    <fillTypes fillTypes="wheat_windrow barley_windrow dryGrass_windrow" />

    <balerUVScrollParts>
		<balerUVScrollPart index="10|1" speed="0 1.6" />
        <balerUVScrollPart index="15"   speed="0 1.6" />
    </balerUVScrollParts>

    <lights count="1">
        <light1 index="10|2" />
    </lights>

	<brakeLights>
		<brakeLight index="0>10|5" />
		<brakeLight index="0>10|6" />
	</brakeLights>		
	
	<lightCoronas>
		<lightCorona index="10|3" />
		<lightCorona index="10|4" />
	</lightCoronas>

    <movingTools>
        <!-- support -->
        <movingTool index="0>16" componentJointIndex="0" anchorActor="0"></movingTool>
		<movingTool index="0>4">
			<dependentPart index="0>5" />
        </movingTool>			
		
		<movingTool index="0>10">
			<dependentPart index="0>18" />
        </movingTool>		
    </movingTools>

	<movingParts>
		<!-- chaffLid hydraulics-->
        <movingPart index="0>5" referencePoint="0>4|2" referenceFrame="0>4|2" scaleZ="true">
        </movingPart>
		<!-- door hydraulics-->
        <movingPart index="0>18" referencePoint="0>10|7" referenceFrame="0>" >
            <translatingPart index="0>18|0" />
        </movingPart>
	</movingParts>
	
    <animations>
        <!-- unload bale -->
        <animation name="unloadBale">
            <part node="10" startTime="0" endTime="5" startRot="0 0 0" endRot="92 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.689 0.176 0"/>
            <part node="11|0" startTime="2.5" endTime="4" startRot="0 0 10" endRot="0 0 30"   startTrans="0.689 0.176 0" endTrans="0.805 -0.434 0"/>

            <part node="11|0" startTime="4" endTime="5" startRot="0 0 30" endRot="0 0 15"   startTrans="0.805 -0.434 0" endTrans="0.976 -0.446 0"/>
            <part node="11|0" startTime="5" endTime="6" startRot="0 0 15" endRot="0 0 0"    startTrans="0.976 -0.446 0" endTrans="1.269 -0.549 0"/>
            <part node="11|0" startTime="6" endTime="7.5" startRot="0 0 0" endRot="0 0 -60"    startTrans="1.269 -0.549 0" endTrans="2.190 -1.108 0"/>

            <part node="11|0" startTime="7.5" endTime="8" startRot="0 0 -60" endRot="0 0 -75"  startTrans="2.190 -1.108 0" endTrans="2.589 -1.119 0"/>
            <part node="11|0" startTime="8" endTime="9" startRot="0 0 -75" endRot="0 0 -105"  startTrans="2.589 -1.119 0" endTrans="3.4 -1.119 0"/>

            <part node="12" startTime="4" endTime="7.5" startRot="0 0 0" endRot="-49 0 0"/>
            <part node="12" startTime="8.5" endTime="10" startRot="-49 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.328 0.428 1.428" endTrans="0.328 0 1.428" />
        </animation>

		<!-- rotate pickup down/up -->
        <animation name="rotatePickup">
            <part node="0>4" startTime="0" duration="1.5" startRot="-20 0 0" endRot="0 0 0" />
        </animation>		
    </animations>

    <support animationName="moveSupport" />
	<pickupAnimation name="rotatePickup" lowerSpeed="2" liftSpeed="-1" />
	
	<powerTakeoffInput index="0>17" rotSpeed="0"/>	

    <components count="2">
        <component1 centerOfMass="0 0.1 -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>
    
    <schemaOverlay file="data/vehicles/schemas/implementSchema.png" fileSelected="data/vehicles/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>
