﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="forageWagon">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Krone ZX 450 GD</en>
        <de>Krone ZX 450 GD</de>
    </name>
	<typeDesc>$l10n_TypeDesc_ForageWagon</typeDesc>
    <filename>data/vehicles/trailers/krone/kroneZX450GD.i3d</filename>

    <size width="5" length="12.5" lengthOffset="0.5" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="0.70" deltaY="0.1" suspTravel="0.12" spring="20" damper="20" mass="0.15" lateralStiffness="2" />
        <wheel driveMode="0" repr="1" radius="0.70" deltaY="0.1" suspTravel="0.12" spring="20" damper="20" mass="0.15" lateralStiffness="2" />
        <wheel driveMode="0" repr="2" radius="0.70" deltaY="0.1" suspTravel="0.12" spring="20" damper="20" mass="0.15" steeringAxleScale="-0.3" steeringAxleRotMax="10" steeringAxleRotMin="-10" lateralStiffness="2" />
        <wheel driveMode="0" repr="3" radius="0.70" deltaY="0.1" suspTravel="0.12" spring="20" damper="20" mass="0.15" steeringAxleScale="-0.3" steeringAxleRotMax="10" steeringAxleRotMin="-10" lateralStiffness="2" />		
    </wheels>
    <brakeForce>1</brakeForce>
    <steeringAxleAngleScale startSpeed="5" endSpeed="90" />

    <lights count="1">
        <light1 index="10|2" />
    </lights>

	<lightCoronas>
		<lightCorona index="10|1" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>10|3" />
	</brakeLights>

    <fillPlanes>
        <fillPlane type="chaff">
            <node index="6|0">
                <key time="0" y="1.705" scale="0.91 0.01 1"/>
                <key time="0.125" y="1.705" scale="1 0.1 1"/>
                <key time="0.2" y="1.705" scale="1.035 0.2 1"/>
                <key time="0.5" y="1.705" scale="1.035 0.5 1"/>
                <key time="1" y="1.705" scale="1 1 1"/>
            </node>
			<node index="12">
				<key time="0" scale="0.85 0.01 1"/>
				<key time="1" scale="0.85 1.25 1"/>
			</node>
        </fillPlane>
		<fillPlane type="grass_windrow">
            <node index="6|1">
                <key time="0" y="1.705" scale="0.91 0.01 1"/>
                <key time="0.125" y="1.705" scale="1 0.1 1"/>
                <key time="0.2" y="1.705" scale="1.035 0.2 1"/>
                <key time="0.5" y="1.705" scale="1.035 0.5 1"/>
                <key time="1" y="1.705" scale="1 1 1"/>
            </node>
			<node index="12">
				<key time="0" scale="0.85 0.01 1"/>
				<key time="1" scale="0.85 1.25 1"/>
			</node>
        </fillPlane>
		<fillPlane type="wheat_windrow">
            <node index="6|2">
                <key time="0" y="1.705" scale="0.91 0.01 1"/>
                <key time="0.125" y="1.705" scale="1 0.1 1"/>
                <key time="0.2" y="1.705" scale="1.035 0.2 1"/>
                <key time="0.5" y="1.705" scale="1.035 0.5 1"/>
                <key time="1" y="1.705" scale="1 1 1"/>
            </node>
			<node index="12">
				<key time="0" scale="0.85 0.01 1"/>
				<key time="1" scale="0.85 1.25 1"/>
			</node>
        </fillPlane>
		<fillPlane type="barley_windrow">
            <node index="6|2">
                <key time="0" y="1.705" scale="0.91 0.01 1"/>
                <key time="0.125" y="1.705" scale="1 0.1 1"/>
                <key time="0.2" y="1.705" scale="1.035 0.2 1"/>
                <key time="0.5" y="1.705" scale="1.035 0.5 1"/>
                <key time="1" y="1.705" scale="1 1 1"/>
            </node>
			<node index="12">
				<key time="0" scale="0.85 0.01 1"/>
				<key time="1" scale="0.85 1.25 1"/>
			</node>
			</fillPlane>
		<fillPlane type="chaff_windrow">
            <node index="6|2">
                <key time="0" y="1.705" scale="0.91 0.01 1"/>
                <key time="0.125" y="1.705" scale="1 0.1 1"/>
                <key time="0.2" y="1.705" scale="1.035 0.2 1"/>
                <key time="0.5" y="1.705" scale="1.035 0.5 1"/>
                <key time="1" y="1.705" scale="1 1 1"/>
            </node>
			<node index="12">
				<key time="0" scale="0.85 0.01 1"/>
				<key time="1" scale="0.85 1.25 1"/>
			</node>
        </fillPlane>
    </fillPlanes>

	<massPerFillLevel value="0.00005" />
    <capacity>43000</capacity>

    <cuttingAreas count="1">
        <cuttingArea1 startIndex="13|0" widthIndex="13|1" heightIndex="13|2" />
    </cuttingAreas>

    <forageWgnSound file="data/vehicles/trailers/forageWagon.wav" pitchOffset="1" volume="1.0" />
    <hydraulicSound file="data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="1.0" volume="1.0" />	
    <fillSound file="data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />

	<powerTakeoffInput index="0>15" rotSpeed="0" />

    <attacherJoint index="4" jointType="trailerLow"/>

	<tipReferencePoints>
        <tipReferencePoint index="0>5" width="2.5" />
    </tipReferencePoints>
	
	<tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="1.0" dischargeEndTime="20" >
            <dischargeParticleSystems>
				<dischargeParticleSystem type="chaff" node="12" rotation="0 0 0" position="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigChaff.i3d" />
				<dischargeParticleSystem type="grass_windrow" node="12" rotation="0 0 0" position="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigGrass.i3d" />
				<dischargeParticleSystem type="wheat_windrow" node="12" rotation="0 0 0" position="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigStraw.i3d" />
				<dischargeParticleSystem type="barley_windrow" node="12" rotation="0 0 0" position="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigStraw.i3d" />
				<dischargeParticleSystem type="chaff_windrow" node="12" rotation="0 0 0" position="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigChaff.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
    </tipAnimations>	

    <fillRootNode index="0>" />
    <exactFillRootNode index="7" />
    <fillAutoAimTargetNode index="8" />
    <fillMassNode index="0>" />

    <fillTypes fruitTypes="chaff grass_windrow wheat_windrow barley_windrow chaff_windrow"/>

    <movingTools>
        <!-- support -->
        <movingTool index="0>9" componentJointIndex="0" anchorActor="0"></movingTool>
    </movingTools>

    <animations>
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="9" startTime="0" duration="1.1" startTrans="0.502 0.6 4.63" endTrans="0.502 0 4.63" />
        </animation>

        <!-- rotate pickup down/up -->
        <animation name="rotatePickup">
            <part node="14" startTime="0" duration="1.5" startRot="-20 0 0 " endRot="0 0 0" />
        </animation>
		
		<!-- backtipping -->
		<animation name="tipAnimationBack">
			<part node="0>10" startTime="0" endTime="4" startRot="0 0 0" endRot="90 0 0" />
        </animation>
    </animations>

    <support animationName="moveSupport" />

    <pickupAnimation name="rotatePickup" lowerSpeed="2" liftSpeed="-1" />

    <tipRotationNodes>
        <tipRotationNode index="11|0" rotSpeed="880"/>
        <tipRotationNode index="11|1" rotSpeed="880"/>
        <tipRotationNode index="11|2" rotSpeed="880"/>
    </tipRotationNodes>

    <components count="2">
        <component1 centerOfMass="0 0.2 -2.0" solverIterationCount="8" />
        <component2 solverIterationCount="8" />
        <joint component1="0" component2="1" index="0>9|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>
